Class DefaultJsonValidationErrorHandler

    • Constructor Detail

      • DefaultJsonValidationErrorHandler

        public DefaultJsonValidationErrorHandler()
    • 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.ValidationException
        Description copied from interface: JsonValidatorErrorHandler
        Process any errors which may have occurred during validation
        Specified by:
        handleErrors in interface JsonValidatorErrorHandler
        Parameters:
        exchange - the exchange
        schema - the schema
        errors - 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.ValidationException
        Description copied from interface: JsonValidatorErrorHandler
        Process a general error that happens during valdating
        Specified by:
        handleErrors in interface JsonValidatorErrorHandler
        Parameters:
        exchange - the exchange
        schema - the schema
        e - general error
        Throws:
        org.apache.camel.ValidationException - is thrown in case of validation errors