Class JsonValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.CamelExchangeException
org.apache.camel.ValidationException
org.apache.camel.component.jsonvalidator.JsonValidationException
- All Implemented Interfaces:
Serializable
public class JsonValidationException
extends org.apache.camel.ValidationException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonValidationException
(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Exception e) JsonValidationException
(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Set<com.networknt.schema.ValidationMessage> errors) -
Method Summary
Modifier and TypeMethodDescriptionSet<com.networknt.schema.ValidationMessage>
int
com.networknt.schema.JsonSchema
Methods inherited from class org.apache.camel.CamelExchangeException
createExceptionMessage, getExchange
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonValidationException
public JsonValidationException(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Set<com.networknt.schema.ValidationMessage> errors) -
JsonValidationException
public JsonValidationException(org.apache.camel.Exchange exchange, com.networknt.schema.JsonSchema schema, Exception e)
-
-
Method Details
-
getSchema
public com.networknt.schema.JsonSchema getSchema() -
getErrors
-
getNumberOfErrors
public int getNumberOfErrors()
-