|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.owasp.esapi.errors.EnterpriseSecurityException org.owasp.esapi.errors.ValidationException
public class ValidationException
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.
Field Summary | |
---|---|
protected static long |
serialVersionUID
|
Fields inherited from class org.owasp.esapi.errors.EnterpriseSecurityException |
---|
logger, logMessage |
Constructor Summary | |
---|---|
protected |
ValidationException()
Instantiates a new validation exception. |
|
ValidationException(String userMessage,
String logMessage)
Creates a new instance of ValidationException. |
|
ValidationException(String userMessage,
String logMessage,
String context)
Creates a new instance of ValidationException. |
|
ValidationException(String userMessage,
String logMessage,
Throwable cause)
Instantiates a new ValidationException. |
|
ValidationException(String userMessage,
String logMessage,
Throwable cause,
String context)
Instantiates a new ValidationException. |
Method Summary | |
---|---|
String |
getContext()
Returns the UI reference that caused this ValidationException |
void |
setContext(String context)
Set's the UI reference that caused this 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final long serialVersionUID
Constructor Detail |
---|
protected ValidationException()
public ValidationException(String userMessage, String logMessage)
userMessage
- the message to display to userslogMessage
- the message loggedpublic ValidationException(String userMessage, String logMessage, Throwable cause)
userMessage
- the message to display to userslogMessage
- the message loggedcause
- the causepublic ValidationException(String userMessage, String logMessage, String context)
userMessage
- the message to display to userslogMessage
- the message loggedcontext
- the source that caused this exceptionpublic ValidationException(String userMessage, String logMessage, Throwable cause, String context)
userMessage
- the message to display to userslogMessage
- the message loggedcause
- the causecontext
- the source that caused this exceptionMethod Detail |
---|
public String getContext()
public void setContext(String context)
context
- the context to set, passed as a String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |