org.eclipse.persistence.platform.xml
Class DefaultErrorHandler
java.lang.Object
org.eclipse.persistence.platform.xml.DefaultErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
public class DefaultErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
INTERNAL:
A default implementation of ErrorHandler that simply rethrows the SAXParseExceptions. This works around
an issue that can result in a NPE when setting a Schema on a parser without setting an Error Handler.
- Author:
- mmacivor
Method Summary |
void |
error(org.xml.sax.SAXParseException ex)
|
void |
fatalError(org.xml.sax.SAXParseException ex)
|
void |
warning(org.xml.sax.SAXParseException ex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultErrorHandler
public DefaultErrorHandler()
error
public void error(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXParseException
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXParseException
warning
public void warning(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXParseException
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXParseException
fatalError
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXParseException
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXParseException