Class DefaultValidationErrorHandler
java.lang.Object
org.apache.camel.support.processor.validation.DefaultValidationErrorHandler
- All Implemented Interfaces:
ValidatorErrorHandler,ErrorHandler
A default error handler which just stores all the errors so they can be reported or transformed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidhandleErrors(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 handlervoid
-
Constructor Details
-
DefaultValidationErrorHandler
public DefaultValidationErrorHandler()
-
-
Method Details
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- 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.ValidationException Description 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
-