public class DefaultJsonValidationErrorHandler extends Object implements JsonValidatorErrorHandler
Constructor and Description |
---|
DefaultJsonValidationErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleErrors(org.apache.camel.Exchange exchange,
com.networknt.schema.JsonSchema schema,
Exception e)
Process a general error that happens during valdating
|
void |
handleErrors(org.apache.camel.Exchange exchange,
com.networknt.schema.JsonSchema schema,
Set<com.networknt.schema.ValidationMessage> errors)
Process any errors which may have occurred during validation
|
public void handleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Set<com.networknt.schema.ValidationMessage> errors) throws org.apache.camel.ValidationException
JsonValidatorErrorHandler
handleErrors
in interface JsonValidatorErrorHandler
exchange
- the exchangeschema
- the schemaerrors
- the validation errorsorg.apache.camel.ValidationException
- is thrown in case of validation errorspublic void handleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Exception e) throws org.apache.camel.ValidationException
JsonValidatorErrorHandler
handleErrors
in interface JsonValidatorErrorHandler
exchange
- the exchangeschema
- the schemae
- general errororg.apache.camel.ValidationException
- is thrown in case of validation errorsApache Camel