public final class ValueAccessException extends RuntimeException
When this exception is thrown in the context of the user interface display or data validation, no stack trace is logged: it is not considered as an "unexpected error" and/or requiring any specific debugging. More precisely for data validation, if this exception is thrown then the specified user message is added to the validation report and the validation process is not stopped.
Modifier and Type | Method and Description |
---|---|
static ValueAccessException |
createError(UserMessage aMessage)
Creates an exception associated with the specified user message.
|
UserMessage |
getUserMessage()
Returns the user message associated with this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static ValueAccessException createError(UserMessage aMessage)
IllegalArgumentException
- if the specified message is null
.IllegalArgumentException
- if the specified message is not of error severity.public UserMessage getUserMessage()