EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.platform.xml
Class DefaultErrorHandler

java.lang.Object
  extended by 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

Constructor Summary
DefaultErrorHandler()
           
 
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
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

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

EclipseLink 1.2.0, build 'v20091016-r5565' API Reference