ValidatorException is thrown by the
validate method of a PreferencesValidator when
the validation of a preference failed.
| Modifier and Type | Field and Description |
|---|---|
| private transient ArrayList | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | ValidatorException(String
the exception text text, Collection<String> keys that failed the validation; may be failedKeys)nullConstructs a new validator exception with the given text. |
| public | ValidatorException(String
the exception text text, Throwable the root cause cause, Collection<String> keys that failed the validation; may be failedKeys)nullConstructs a new portlet validator exception. |
| public | ValidatorException(Throwable
the root cause cause, Collection<String> keys that failed the validation; may be failedKeys)nullConstructs a new portlet validator exception when the portlet needs to throw an exception. |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | Returns: the keys that failed validation, or an emptyEnumeration if no failed keys are available.Returns the keys that failed the validation. |
| failedKeyVector | back to summary |
|---|---|
| private transient ArrayList<String> failedKeyVector | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ValidatorException | back to summary |
|---|---|
| public ValidatorException(String text, Collection<String> failedKeys) Constructs a new validator exception with the given text. The portlet container may use the text write it to a log.
The collection of failed keys may contain all failed keys, only the
first key that failed validation, or may be
| |
| ValidatorException | back to summary |
|---|---|
| public ValidatorException(String text, Throwable cause, Collection<String> failedKeys) Constructs a new portlet validator exception. Used, when the portlet needs to do one of the following:
The Collection of failed keys may contain all failed keys, only the
first key that failed validation, or may be
| |
| ValidatorException | back to summary |
|---|---|
| public ValidatorException(Throwable cause, Collection<String> failedKeys) Constructs a new portlet validator exception when the portlet needs to throw an exception. The exception message is based on the localized message of the underlying exception.
The Collection of failed keys may contain all failed keys, only the
first key that failed validation, or may be
| |
| getFailedKeys | back to summary |
|---|---|
| public Enumeration Returns the keys that failed the validation.
The Enumeration of failed keys may contain all failed keys, only the
first key that failed validation, or an empty
| |