Class LoggingPSErrorHandler

java.lang.Object
com.helger.schematron.pure.errorhandler.AbstractPSErrorHandler
com.helger.schematron.pure.errorhandler.LoggingPSErrorHandler
All Implemented Interfaces:
com.helger.schematron.ISchematronErrorHandler, IPSErrorHandler

public class LoggingPSErrorHandler extends AbstractPSErrorHandler
An implementation if IPSErrorHandler that logs to an SLF4J logger.
Author:
Philip Helger
  • Field Details

    • DEFAULT_PS

      public static final com.helger.commons.error.IErrorTextProvider DEFAULT_PS
  • Constructor Details

    • LoggingPSErrorHandler

      public LoggingPSErrorHandler()
    • LoggingPSErrorHandler

      public LoggingPSErrorHandler(@Nullable IPSErrorHandler aNestedErrorHandler)
  • Method Details

    • getErrorTextProvider

      @Nonnull public final com.helger.commons.error.IErrorTextProvider getErrorTextProvider()
    • setErrorTextProvider

      @Nonnull public final LoggingPSErrorHandler setErrorTextProvider(@Nonnull com.helger.commons.error.IErrorTextProvider aETP)
    • handleInternally

      protected void handleInternally(@Nonnull com.helger.commons.error.IError aError)
      Description copied from class: AbstractPSErrorHandler
      The internal method to handle warnings and errors.
      Specified by:
      handleInternally in class AbstractPSErrorHandler
      Parameters:
      aError - The structured error. May not be null.