Class AbstractPSErrorHandler

java.lang.Object
com.helger.schematron.pure.errorhandler.AbstractPSErrorHandler
All Implemented Interfaces:
com.helger.schematron.ISchematronErrorHandler, IPSErrorHandler
Direct Known Subclasses:
AbstractCollectingPSErrorHandler, DoNothingPSErrorHandler, LoggingPSErrorHandler

public abstract class AbstractPSErrorHandler extends Object implements IPSErrorHandler
Abstract implementation of IPSErrorHandler.
Author:
Philip Helger
  • Constructor Details

    • AbstractPSErrorHandler

      protected AbstractPSErrorHandler()
    • AbstractPSErrorHandler

      protected AbstractPSErrorHandler(@Nullable IPSErrorHandler aNestedErrorHandler)
  • Method Details

    • getNestedErrorHandler

      @Nullable public IPSErrorHandler getNestedErrorHandler()
      Returns:
      The nested error handler as passed in the constructor or null if none was provided.
    • handleInternally

      protected abstract void handleInternally(@Nonnull com.helger.commons.error.IError aError)
      The internal method to handle warnings and errors.
      Parameters:
      aError - The structured error. May not be null.
    • handleError

      public final void handleError(@Nonnull com.helger.commons.error.IError aError)
      Specified by:
      handleError in interface com.helger.schematron.ISchematronErrorHandler
    • toString

      public String toString()
      Overrides:
      toString in class Object