Package com.sdicons.json.validator
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sdicons.json.validator.ValidationException
-
- All Implemented Interfaces:
java.io.Serializable
public class ValidationException extends java.lang.Exception
The exception is thrown when a validation fails.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private JSONValue
culprit
private java.lang.String
validationRule
-
Constructor Summary
Constructors Constructor Description ValidationException(JSONValue aCulprit, java.lang.String aRule)
ValidationException(java.lang.String aComments, JSONValue aCulprit, java.lang.String aRule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONValue
getCulprit()
java.lang.String
getMessage()
java.lang.String
getValidationRule()
-
-
-
Field Detail
-
culprit
private JSONValue culprit
-
validationRule
private java.lang.String validationRule
-
-
Method Detail
-
getCulprit
public JSONValue getCulprit()
-
getValidationRule
public java.lang.String getValidationRule()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-