com.sun.xml.bind
Class ErrorHandlerToEventHandler
java.lang.Object
com.sun.xml.bind.ErrorHandlerToEventHandler
- All Implemented Interfaces:
- ErrorHandler
public class ErrorHandlerToEventHandler
- extends Object
- implements ErrorHandler
An ErrorHandler that accepts a SAXParseException from the ValidatingUnmarshaller,
creates a ValidationEvent, and passes it onto the client app's ValidationEventHandler.
- Since:
- 1.0
- See Also:
ValidatingUnmarshaller
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorHandlerToEventHandler
public ErrorHandlerToEventHandler(ValidationEventHandler handler,
Locator locator)
error
public void error(SAXParseException exception)
throws SAXException
- Specified by:
error in interface ErrorHandler
- Throws:
SAXException
warning
public void warning(SAXParseException exception)
throws SAXException
- Specified by:
warning in interface ErrorHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException exception)
throws SAXException
- Specified by:
fatalError in interface ErrorHandler
- Throws:
SAXException
Copyright © 2014 Oracle Corporation. All Rights Reserved.