com.sun.xml.bind
Class ErrorHandlerToEventHandler

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

Constructor Summary
ErrorHandlerToEventHandler(ValidationEventHandler handler, Locator locator)
           
 
Method Summary
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandlerToEventHandler

public ErrorHandlerToEventHandler(ValidationEventHandler handler,
                                  Locator locator)
Method Detail

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.