Class LoggingErrorHandler

java.lang.Object
net.shibboleth.utilities.java.support.xml.LoggingErrorHandler
All Implemented Interfaces:
ErrorHandler

public final class LoggingErrorHandler
extends Object
implements ErrorHandler
A SAX error handler that logs errors to a Logger before rethrowing them.
  • Field Details

    • log

      @Nonnull private org.slf4j.Logger log
      Error logger.
    • logException

      private boolean logException
      Whether to pass exception to logger.
  • Constructor Details

    • LoggingErrorHandler

      public LoggingErrorHandler​(@Nonnull org.slf4j.Logger logger)
      Constructor.
      Parameters:
      logger - logger errors will be written to
  • Method Details