com.sdicons.json.validator
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sdicons.json.validator.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends Exception

The exception is thrown when a validation fails.

See Also:
Serialized Form

Constructor Summary
ValidationException(JSONValue aCulprit, String aRule)
           
ValidationException(String aComments, JSONValue aCulprit, String aRule)
           
 
Method Summary
 JSONValue getCulprit()
           
 String getMessage()
           
 String getValidationRule()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(String aComments,
                           JSONValue aCulprit,
                           String aRule)

ValidationException

public ValidationException(JSONValue aCulprit,
                           String aRule)
Method Detail

getCulprit

public JSONValue getCulprit()

getValidationRule

public String getValidationRule()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2011. All Rights Reserved.