Class DefaultValidationErrorHandler
- java.lang.Object
-
- org.apache.camel.support.processor.validation.DefaultValidationErrorHandler
-
- All Implemented Interfaces:
ValidatorErrorHandler,ErrorHandler
public class DefaultValidationErrorHandler extends Object implements ValidatorErrorHandler
A default error handler which just stores all the errors so they can be reported or transformed.
-
-
Constructor Summary
Constructors Constructor Description DefaultValidationErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)voidfatalError(SAXParseException e)voidhandleErrors(org.apache.camel.Exchange exchange, Object schema)voidhandleErrors(org.apache.camel.Exchange exchange, Schema schema, Result result)Process any errors which may have occurred during validationbooleanisValid()voidreset()Resets any state within this error handlervoidwarning(SAXParseException e)
-
-
-
Method Detail
-
warning
public void warning(SAXParseException e) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
reset
public void reset()
Description copied from interface:ValidatorErrorHandlerResets any state within this error handler- Specified by:
resetin interfaceValidatorErrorHandler
-
isValid
public boolean isValid()
-
handleErrors
public void handleErrors(org.apache.camel.Exchange exchange, Schema schema, Result result) throws org.apache.camel.ValidationExceptionDescription copied from interface:ValidatorErrorHandlerProcess any errors which may have occurred during validation- Specified by:
handleErrorsin interfaceValidatorErrorHandler- Parameters:
exchange- the exchangeschema- the schemaresult- the result- Throws:
org.apache.camel.ValidationException- is thrown in case of validation errors
-
handleErrors
public void handleErrors(org.apache.camel.Exchange exchange, Object schema) throws org.apache.camel.ValidationException- Throws:
org.apache.camel.ValidationException
-
-