public class LoggingPSErrorHandler extends AbstractPSErrorHandler
IPSErrorHandler
that logs to an SLF4J logger.Constructor and Description |
---|
LoggingPSErrorHandler() |
LoggingPSErrorHandler(IPSErrorHandler aNestedErrorHandler) |
Modifier and Type | Method and Description |
---|---|
static String |
getLogMessage(com.helger.commons.io.resource.IReadableResource aRes,
IPSElement aSourceElement,
String sMessage) |
protected void |
handle(com.helger.commons.io.resource.IReadableResource aRes,
com.helger.commons.error.IErrorLevel aErrorLevel,
IPSElement aSourceElement,
String sMessage,
Throwable t)
The abstract method that is called for both warnings and errors.
|
error, error, getNestedErrorHandler, toString, warn
public LoggingPSErrorHandler()
public LoggingPSErrorHandler(@Nullable IPSErrorHandler aNestedErrorHandler)
@Nonnull public static String getLogMessage(@Nullable com.helger.commons.io.resource.IReadableResource aRes, @Nullable IPSElement aSourceElement, @Nonnull String sMessage)
protected void handle(@Nullable com.helger.commons.io.resource.IReadableResource aRes, @Nonnull com.helger.commons.error.IErrorLevel aErrorLevel, @Nullable IPSElement aSourceElement, @Nonnull String sMessage, @Nullable Throwable t)
AbstractPSErrorHandler
handle
in class AbstractPSErrorHandler
aRes
- The resource in which the error occurred.aErrorLevel
- The error level. Never null
.aSourceElement
- The source schematron element, in which the error occurred. Maybe
null
for XPath errors.sMessage
- The error message. Never null
.t
- The optional exception that might have occurred. May be
null
.Copyright © 2014–2016 Philip Helger. All rights reserved.