Package org.apache.camel.component.xslt
Class DefaultTransformErrorHandler
java.lang.Object
org.apache.camel.component.xslt.DefaultTransformErrorHandler
- All Implemented Interfaces:
ErrorListener,ErrorHandler
ErrorHandler and ErrorListener which will ignore warnings, and throws error and fatal as exception,
which ensures those can be caught by Camel and dealt-with.
Also any warning, error or fatal error is stored on the Exchange as a property with the keys
CamelXsltWarning, CamelXsltError, and CamelXsltFatalError which allows end users to access
those information form the exchange.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(TransformerException exception) voiderror(SAXParseException exception) voidfatalError(TransformerException exception) voidfatalError(SAXParseException exception) voidwarning(TransformerException exception) voidwarning(SAXParseException exception)
-
Constructor Details
-
DefaultTransformErrorHandler
public DefaultTransformErrorHandler(org.apache.camel.Exchange exchange)
-
-
Method Details
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorListener- Throws:
TransformerException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorListener- Throws:
TransformerException
-
warning
- Specified by:
warningin interfaceErrorListener- Throws:
TransformerException
-