java.lang.Object
org.eclipse.persistence.jaxb.JAXBErrorHandler
- All Implemented Interfaces:
ErrorHandler
Implementation of org.xml.sax.ErrorHandler. When JAXBMarshaller or JAXBUnmarshaller is given a ValidationEventHandler a JAXBErrorHandler is used to wrap it. This ErrorHandler is then used by the underlying XMLMarshaller or XMLUnmarshaller.
-
Constructor Summary
ConstructorsConstructorDescriptionJAXBErrorHandler(ValidationEventHandler validationEventHandler) Create a new JAXBErrorHandler with the specified ValidationEventHandler -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) Handle errors.voidfatalError(SAXParseException exception) Handle fatal errors.Return the ValidationEventHandler associated with this JAXBErrorHandler.voidwarning(SAXParseException exception) Handle warnings The exception will be given to the ValidationEventHandler at to attempt to handle.
-
Constructor Details
-
JAXBErrorHandler
Create a new JAXBErrorHandler with the specified ValidationEventHandler
-
-
Method Details
-
warning
Handle warnings The exception will be given to the ValidationEventHandler at to attempt to handle.- Specified by:
warningin interfaceErrorHandler- Parameters:
exception- the SAXParseException that occurred- Throws:
SAXException
-
error
Handle errors. The exception will be given to the ValidationEventHandler at to attempt to handle.- Specified by:
errorin interfaceErrorHandler- Parameters:
exception- the SAXParseException that occurred- Throws:
SAXException
-
fatalError
Handle fatal errors. The exception will be given to the ValidationEventHandler at to attempt to handle.- Specified by:
fatalErrorin interfaceErrorHandler- Parameters:
exception- the SAXParseException that occurred- Throws:
SAXException
-
getValidationEventHandler
Return the ValidationEventHandler associated with this JAXBErrorHandler.- Returns:
- the ValidationEventHandler associated with this JAXBErrorHandler.
-