Class DefaultJsonValidationErrorHandler
- java.lang.Object
-
- org.apache.camel.component.jsonvalidator.DefaultJsonValidationErrorHandler
-
- All Implemented Interfaces:
JsonValidatorErrorHandler
public class DefaultJsonValidationErrorHandler extends Object implements JsonValidatorErrorHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultJsonValidationErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Exception e)Process a general error that happens during valdatingvoidhandleErrors(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
-
-
-
Method Detail
-
handleErrors
public void handleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Set<com.networknt.schema.ValidationMessage> errors) throws org.apache.camel.ValidationExceptionDescription copied from interface:JsonValidatorErrorHandlerProcess any errors which may have occurred during validation- Specified by:
handleErrorsin interfaceJsonValidatorErrorHandler- Parameters:
exchange- the exchangeschema- the schemaerrors- the validation errors- Throws:
org.apache.camel.ValidationException- is thrown in case of validation errors
-
handleErrors
public void handleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Exception e) throws org.apache.camel.ValidationExceptionDescription copied from interface:JsonValidatorErrorHandlerProcess a general error that happens during valdating- Specified by:
handleErrorsin interfaceJsonValidatorErrorHandler- Parameters:
exchange- the exchangeschema- the schemae- general error- Throws:
org.apache.camel.ValidationException- is thrown in case of validation errors
-
-