javax.portlet
public class ValidatorException extends PortletException
ValidatorException
is thrown by the
validate
method of a PreferencesValidator when
the validation of a preference failed.
Field Summary | |
---|---|
ArrayList | failedKeyVector |
Constructor Summary | |
---|---|
ValidatorException() | |
ValidatorException(String text, Collection failedKeys)
Constructs a new validator exception with the given text. | |
ValidatorException(String text, Throwable cause, Collection failedKeys)
Constructs a new portlet validator exception.
| |
ValidatorException(Throwable cause, Collection failedKeys)
Constructs a new portlet validator exception when the portlet needs to throw an
exception. |
Method Summary | |
---|---|
Enumeration | getFailedKeys()
Returns the keys that failed the validation.
|
The collection of failed keys may contain all failed keys, only the
first key that failed validation, or may be null
.
Parameters: text
the exception text failedKeys
keys that failed the validation; may be null
The Collection of failed keys may contain all failed keys, only the
first key that failed validation, or may be null
.
Parameters: text
the exception text cause
the root cause failedKeys
keys that failed the validation; may be null
The Collection of failed keys may contain all failed keys, only the
first key that failed validation, or may be null
.
Parameters: cause
the root cause failedKeys
keys that failed the validation; may be null
The Enumeration of failed keys may contain all failed keys, only the
first key that failed validation, or an empty
Enumeration
if no failed keys are available.
Returns: the keys that failed validation, or an empty
Enumeration
if no failed keys are available.