org.owasp.esapi.errors
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.owasp.esapi.errors.EnterpriseSecurityException
              extended byorg.owasp.esapi.errors.ValidationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidationAvailabilityException, ValidationUploadException

public class ValidationException
extends EnterpriseSecurityException

A ValidationException should be thrown to indicate that the data provided by the user or from some other external source does not match the validation rules that have been specified for that data.

Author:
Jeff Williams (jeff.williams@aspectsecurity.com)
See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.String userMessage, java.lang.String logMessage)
          Creates a new instance of ValidationException.
ValidationException(java.lang.String userMessage, java.lang.String logMessage, java.lang.Throwable cause)
          Instantiates a new ValidationException.
 
Methods inherited from class org.owasp.esapi.errors.EnterpriseSecurityException
getLogMessage, getUserMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.String userMessage,
                           java.lang.String logMessage)
Creates a new instance of ValidationException.


ValidationException

public ValidationException(java.lang.String userMessage,
                           java.lang.String logMessage,
                           java.lang.Throwable cause)
Instantiates a new ValidationException.

Parameters:
cause - the cause