Package com.helger.xml.sax
Class LoggingSAXErrorHandler
java.lang.Object
com.helger.xml.sax.AbstractSAXErrorHandler
com.helger.xml.sax.LoggingSAXErrorHandler
- All Implemented Interfaces:
ISAXErrorHandler,ErrorHandler
java.xml error handler that simply logs data to a logger.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetErrorMessage(com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException aException) protected voidinternalLog(com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException aException) Methods inherited from class com.helger.xml.sax.AbstractSAXErrorHandler
error, fatalError, getSaxParseError, toString, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.xml.sax.ISAXErrorHandler
andThen
-
Constructor Details
-
LoggingSAXErrorHandler
public LoggingSAXErrorHandler()
-
-
Method Details
-
getErrorMessage
@Nonnull @Nonempty @OverrideOnDemand protected String getErrorMessage(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException aException) -
internalLog
protected void internalLog(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException aException) - Specified by:
internalLogin classAbstractSAXErrorHandler
-