Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JSONValue getCulprit()  
      java.lang.String getMessage()  
      java.lang.String getValidationRule()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • validationRule

        private java.lang.String validationRule
    • Constructor Detail

      • ValidationException

        public ValidationException​(java.lang.String aComments,
                                   JSONValue aCulprit,
                                   java.lang.String aRule)
      • ValidationException

        public ValidationException​(JSONValue aCulprit,
                                   java.lang.String aRule)
    • Method Detail

      • getValidationRule

        public java.lang.String getValidationRule()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable