|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.data.Validator.InvalidValueException
public static class Validator.InvalidValueException
Exception that is thrown by a Validator when a value is invalid.
The default implementation of InvalidValueException does not support HTML
in error messages. To enable HTML support, override
getHtmlMessage() and use the subclass in validators.
| Constructor Summary | |
|---|---|
Validator.InvalidValueException(java.lang.String message)
Constructs a new InvalidValueException with the specified
message. |
|
Validator.InvalidValueException(java.lang.String message,
Validator.InvalidValueException... causes)
Constructs a new InvalidValueException with a set of causing
validation exceptions. |
|
| Method Summary | |
|---|---|
Validator.InvalidValueException[] |
getCauses()
Returns the InvalidValueExceptions that caused this
exception. |
java.lang.String |
getHtmlMessage()
Returns the message of the error in HTML. |
boolean |
isInvisible()
Check if the error message should be hidden. |
| 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 |
| Constructor Detail |
|---|
public Validator.InvalidValueException(java.lang.String message)
InvalidValueException with the specified
message.
message - The detail message of the problem.
public Validator.InvalidValueException(java.lang.String message,
Validator.InvalidValueException... causes)
InvalidValueException with a set of causing
validation exceptions. The causing validation exceptions are included
when the exception is painted to the client.
message - The detail message of the problem.causes - One or more InvalidValueExceptions that caused
this exception.| Method Detail |
|---|
public boolean isInvisible()
public java.lang.String getHtmlMessage()
public Validator.InvalidValueException[] getCauses()
InvalidValueExceptions that caused this
exception.
InvalidValueExceptions that
caused this exception. Returns an empty array if this
exception was not caused by other exceptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||