A ValidatorException is an exception thrown by the
validate()
method of a Validator
to indicate that validation failed.
Modifier and Type | Field and Description |
---|---|
private FacesMessage | |
private Collection | |
private static final long |
Access | Constructor and Description |
---|---|
public | ValidatorException(FacesMessage
The message for this exception message)Construct a new exception with the specified message and no root cause. |
public | ValidatorException(Collection<FacesMessage>
the list of messages for this exception messages)Allow this one exception to contain multiple messages. |
public | ValidatorException(FacesMessage
The detail message for this exception message, Throwable The root cause for this exception cause)Construct a new exception with the specified detail message and root cause. |
public | ValidatorException(Collection<FacesMessage>
the detail messages for this exception messages, Throwable the root cause for this exception cause)Allow this one exception to contain multiple messages, while passing on the root cause to the superclass |
Modifier and Type | Method and Description |
---|---|
public FacesMessage | |
public Collection | Returns: the messages
If this instance was created with a constructor that takes |
message | back to summary |
---|---|
private FacesMessage message |
messages | back to summary |
---|---|
private Collection<FacesMessage> messages |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
ValidatorException | back to summary |
---|---|
public ValidatorException(FacesMessage message) Construct a new exception with the specified message and no root cause.
|
ValidatorException | back to summary |
---|---|
public ValidatorException(Collection<FacesMessage> messages) Allow this one exception to contain multiple messages.
|
ValidatorException | back to summary |
---|---|
public ValidatorException(FacesMessage message, Throwable cause) Construct a new exception with the specified detail message and root cause.
|
ValidatorException | back to summary |
---|---|
public ValidatorException(Collection<FacesMessage> messages, Throwable cause) Allow this one exception to contain multiple messages, while passing on the root cause to the superclass
|
getFacesMessage | back to summary |
---|---|
public FacesMessage getFacesMessage()
Returns the
|
getFacesMessages | back to summary |
---|---|
public Collection
If this instance was created with a constructor that takes
|