We have a situation where client code sometimes cancels the request to generate a preview and that means that the parser in docx4j will throw an exception. The exception ends up in the XMLUtils inner class LoggingErrorListener, which in case of a fatal error both logs and throws the exception.
We would prefer that the exceptions only were thrown and not logged so we can handle them ourselves in our code and not have docx4j log a complete stacktrace every time this happens.
Can this be changed?