public class ValidatorException extends PortletException
ValidatorException is thrown by the validate method of a PreferencesValidator when the
validation of a preference failed.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
getFailedKeys()
Returns the keys that failed the validation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidatorException(String text, Collection failedKeys)
null.text - the exception textfailedKeys - keys that failed the validation; may be nullpublic ValidatorException(String text, Throwable cause, Collection failedKeys)
null.text - the exception textcause - the root causefailedKeys - keys that failed the validation; may be nullpublic ValidatorException(Throwable cause, Collection failedKeys)
null.cause - the root causefailedKeys - keys that failed the validation; may be nullpublic Enumeration getFailedKeys()
Enumeration if no failed keys are available.Enumeration if no failed keys are available.Copyright © 2003-2018 GateIn. All Rights Reserved.