Package gda.util.xml
Class FailFastErrorHandler
java.lang.Object
gda.util.xml.FailFastErrorHandler
- All Implemented Interfaces:
ErrorHandler
An
ErrorHandler that logs to a Logger and aborts the parsing
when an error or fatal error occurs.-
Constructor Summary
ConstructorsConstructorDescriptionFailFastErrorHandler(org.slf4j.Logger logger) Creates a fail-fast error handler that logs to the specified logger. -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) voidwarning(SAXParseException exception)
-
Constructor Details
-
FailFastErrorHandler
public FailFastErrorHandler(org.slf4j.Logger logger) Creates a fail-fast error handler that logs to the specified logger.- Parameters:
logger- aLogger
-
-
Method Details
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-