Package org.apache.camel.component.xslt
Class DefaultTransformErrorHandler
- java.lang.Object
-
- org.apache.camel.component.xslt.DefaultTransformErrorHandler
-
- All Implemented Interfaces:
ErrorListener,ErrorHandler
public class DefaultTransformErrorHandler extends Object implements ErrorHandler, ErrorListener
ErrorHandlerandErrorListenerwhich 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 theExchangeas a property with the keys CamelXsltWarning, CamelXsltError, and CamelXsltFatalError which allows end users to access those information form the exchange.
-
-
Constructor Summary
Constructors Constructor Description DefaultTransformErrorHandler(org.apache.camel.Exchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(TransformerException exception)voiderror(SAXParseException exception)voidfatalError(TransformerException exception)voidfatalError(SAXParseException exception)voidwarning(TransformerException exception)voidwarning(SAXParseException exception)
-
-
-
Method Detail
-
error
public void error(SAXParseException exception) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
public void warning(SAXParseException exception) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
public void error(TransformerException exception) throws TransformerException
- Specified by:
errorin interfaceErrorListener- Throws:
TransformerException
-
fatalError
public void fatalError(TransformerException exception) throws TransformerException
- Specified by:
fatalErrorin interfaceErrorListener- Throws:
TransformerException
-
warning
public void warning(TransformerException exception) throws TransformerException
- Specified by:
warningin interfaceErrorListener- Throws:
TransformerException
-
-