org.apache.camel.processor.validation
Class DefaultValidationErrorHandler
java.lang.Object
org.apache.camel.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.
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultValidationErrorHandler
public DefaultValidationErrorHandler()
warning
public void warning(SAXParseException e)
throws SAXException
- Specified by:
warning
in interface ErrorHandler
- Throws:
SAXException
error
public void error(SAXParseException e)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException e)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Throws:
SAXException
reset
public void reset()
- Description copied from interface:
ValidatorErrorHandler
- Resets any state within this error handler
- Specified by:
reset
in interface ValidatorErrorHandler
isValid
public boolean isValid()
handleErrors
public void handleErrors(Exchange exchange,
Schema schema,
Result result)
throws ValidationException
- Description copied from interface:
ValidatorErrorHandler
- Process any errors which may have occurred during validation
- Specified by:
handleErrors
in interface ValidatorErrorHandler
- Parameters:
exchange
- the exchangeschema
- the schemaresult
- the result
- Throws:
ValidationException
- is thrown in case of validation errors
handleErrors
public void handleErrors(Exchange exchange,
Object schema)
throws ValidationException
- Throws:
ValidationException
Apache Camel