Class XSErrorHandler
java.lang.Object
com.io7m.xstructural.vanilla.internal.XSErrorHandler
- All Implemented Interfaces:
ErrorHandler
An error handler that logs messages and tracks the failure state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) booleanisFailed()voidwarning(SAXParseException exception)
-
Constructor Details
-
XSErrorHandler
public XSErrorHandler(org.slf4j.Logger inLogger) An error handler.- Parameters:
inLogger- The target logger
-
-
Method Details
-
isFailed
public boolean isFailed()- Returns:
trueif an error has occurred
-
warning
- Specified by:
warningin interfaceErrorHandler
-
error
- Specified by:
errorin interfaceErrorHandler
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-