public class ValidationException extends EnterpriseSecurityException
Modifier and Type | Field and Description |
---|---|
protected static long |
serialVersionUID |
logger, logMessage
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getContext()
Returns the UI reference that caused this ValidationException
|
void |
setContext(String context)
Set's the UI reference that caused this ValidationException
|
getLogMessage, getUserMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected static final long serialVersionUID
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 exceptionpublic String getContext()
public void setContext(String context)
context
- the context to set, passed as a StringCopyright © 2022 The Open Web Application Security Project (OWASP). All rights reserved.