Package org.mycore.common.xml
Class MCRXMLParserErrorHandler
java.lang.Object
org.mycore.common.xml.MCRXMLParserErrorHandler
- All Implemented Interfaces:
ErrorHandler
Handles errors during XML parsing.
- Author:
- Frank Lützenkirchen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Handles parse errorsvoid
Handles fatal parse errorsstatic String
Returns a text indicating at which line and column the error occured.void
Handles parser warnings
-
Field Details
-
silent
protected boolean silent
-
-
Constructor Details
-
MCRXMLParserErrorHandler
public MCRXMLParserErrorHandler() -
MCRXMLParserErrorHandler
public MCRXMLParserErrorHandler(boolean silent)
-
-
Method Details
-
warning
Handles parser warnings- Specified by:
warning
in interfaceErrorHandler
-
error
Handles parse errors- Specified by:
error
in interfaceErrorHandler
-
fatalError
Handles fatal parse errors- Specified by:
fatalError
in interfaceErrorHandler
-
getSAXErrorMessage
Returns a text indicating at which line and column the error occured.- Parameters:
ex
- the SAXParseException exception- Returns:
- the location string
-