public class ValidationException extends Exception
| Modifier and Type | Field and Description |
|---|---|
protected String |
logMessage |
protected static long |
serialVersionUID |
| 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
|
String |
getLogMessage()
Returns the UI reference that caused this ValidationException
|
protected void |
setContext(String context)
Set's the UI reference that caused this ValidationException
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected static final long serialVersionUID
protected String logMessage
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()
protected void setContext(String context)
context - the context to set, passed as a Stringpublic String getLogMessage()
Copyright © 2017. All rights reserved.