Interface JsonValidatorErrorHandler

All Known Implementing Classes:
DefaultJsonValidationErrorHandler

public interface JsonValidatorErrorHandler
  • Method Summary

    Modifier and Type
    Method
    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
  • Method Details

    • handleErrors

      void handleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Set<com.networknt.schema.ValidationMessage> errors) throws org.apache.camel.ValidationException
      Process any errors which may have occurred during validation
      Parameters:
      exchange - the exchange
      schema - the schema
      errors - the validation errors
      Throws:
      org.apache.camel.ValidationException - is thrown in case of validation errors
    • handleErrors

      void handleErrors(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Exception e) throws org.apache.camel.ValidationException
      Process a general error that happens during valdating
      Parameters:
      exchange - the exchange
      schema - the schema
      e - general error
      Throws:
      org.apache.camel.ValidationException - is thrown in case of validation errors