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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(org.xml.sax.SAXParseException ex)
void
fatalError(org.xml.sax.SAXParseException ex)
static DefaultErrorHandler
getInstance()
void
warning(org.xml.sax.SAXParseException ex)
-
-
-
Method Detail
-
getInstance
public static DefaultErrorHandler getInstance()
-
error
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXParseException
- Specified by:
error
in interfaceorg.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 interfaceorg.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 interfaceorg.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXParseException
-
-