Package org.apache.openjpa.lib.xml
Class ValidatingErrorHandler
- java.lang.Object
-
- org.apache.openjpa.lib.xml.ValidatingErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class ValidatingErrorHandler extends Object implements ErrorHandler
ErrorHandler implementation which overrides the default behavior of ignoring parse errors to throw aSAXException
instead. This handler is used by the validating parsers of theXMLFactory
.- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description ValidatingErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(SAXParseException e)
void
fatalError(SAXParseException e)
void
warning(SAXParseException e)
-
-
-
Method Detail
-
warning
public void warning(SAXParseException e) throws SAXException
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
-