| java.lang.Object java.lang.Throwable java.lang.Exception javax.portlet.PortletException javax.portlet.ValidatorException
ValidatorException | public class ValidatorException extends PortletException (Code) | | The ValidatorException is thrown by the
validate method of a PreferencesValidator when
the validation of a preference failed.
|
ValidatorException | public ValidatorException(String text, Collection failedKeys)(Code) | | 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 null .
Parameters: text - the exception text Parameters: failedKeys - keys that failed the validation; may be null |
ValidatorException | public ValidatorException(String text, Throwable cause, Collection failedKeys)(Code) | | Constructs a new portlet validator exception.
Used, when the portlet needs to do one of the following:
throw an exception
- include a message about the "root cause" that interfered
with its normal operation
- include a description message
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 Parameters: cause - the root cause Parameters: failedKeys - keys that failed the validation; may be null |
ValidatorException | public ValidatorException(Throwable cause, Collection failedKeys)(Code) | | 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 null .
Parameters: cause - the root cause Parameters: failedKeys - keys that failed the validation; may be null |
getFailedKeys | public Enumeration getFailedKeys()(Code) | | 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
Enumeration if no failed keys are available.
the keys that failed validation, or an empty Enumeration if no failed keys are available. |
|
|