- java.lang.Object
-
- org.eclipse.persistence.platform.xml.DefaultErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class DefaultErrorHandler extends Object implements 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(SAXParseException ex)
void
fatalError(SAXParseException ex)
static DefaultErrorHandler
getInstance()
void
warning(SAXParseException ex)
-
-
-
Method Detail
-
getInstance
public static DefaultErrorHandler getInstance()
-
error
public void error(SAXParseException ex) throws SAXParseException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXParseException
-
warning
public void warning(SAXParseException ex) throws SAXParseException
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXParseException
-
fatalError
public void fatalError(SAXParseException ex) throws SAXParseException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXParseException
-
-