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
An implementation if
IPSErrorHandler that logs to an SLF4J logger.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.helger.commons.error.IErrorTextProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.helger.commons.error.IErrorTextProviderprotected voidhandleInternally(com.helger.commons.error.IError aError) The internal method to handle warnings and errors.final LoggingPSErrorHandlersetErrorTextProvider(com.helger.commons.error.IErrorTextProvider aETP) Methods inherited from class com.helger.schematron.pure.errorhandler.AbstractPSErrorHandler
getNestedErrorHandler, handleError, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.schematron.pure.errorhandler.IPSErrorHandler
error
-
Field Details
-
DEFAULT_PS
public static final com.helger.commons.error.IErrorTextProvider DEFAULT_PS
-
-
Constructor Details
-
LoggingPSErrorHandler
public LoggingPSErrorHandler() -
LoggingPSErrorHandler
-
-
Method Details
-
getErrorTextProvider
-
setErrorTextProvider
@Nonnull public final LoggingPSErrorHandler setErrorTextProvider(@Nonnull com.helger.commons.error.IErrorTextProvider aETP) -
handleInternally
Description copied from class:AbstractPSErrorHandlerThe internal method to handle warnings and errors.- Specified by:
handleInternallyin classAbstractPSErrorHandler- Parameters:
aError- The structured error. May not benull.
-