|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.portlet.PortletException javax.portlet.ValidatorException
The ValidatorException
is thrown by the validate
method of a PreferencesValidator when the
validation of a preference failed.
Field Summary | |
private static java.util.Enumeration |
EMPTY_ENUMERATION
|
private java.util.Collection |
failedKeys
|
private java.util.Enumeration |
failedKeysEnumeration
|
private static long |
serialVersionUID
The serialVersionUID |
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
ValidatorException(java.lang.String text,
java.util.Collection failedKeys)
Constructs a new validator exception with the given text. |
|
ValidatorException(java.lang.String text,
java.lang.Throwable cause,
java.util.Collection failedKeys)
Constructs a new portlet validator exception. |
|
ValidatorException(java.lang.Throwable cause,
java.util.Collection failedKeys)
Constructs a new portlet validator exception when the portlet needs to throw an exception. |
Method Summary | |
java.util.Enumeration |
getFailedKeys()
Returns the keys that failed the validation. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private static final java.util.Enumeration EMPTY_ENUMERATION
private java.util.Collection failedKeys
private java.util.Enumeration failedKeysEnumeration
Constructor Detail |
public ValidatorException(java.lang.String text, java.util.Collection failedKeys)
null
.
text
- the exception textfailedKeys
- keys that failed the validation; may be null
public ValidatorException(java.lang.String text, java.lang.Throwable cause, java.util.Collection failedKeys)
null
.
text
- the exception textcause
- the root causefailedKeys
- keys that failed the validation; may be null
public ValidatorException(java.lang.Throwable cause, java.util.Collection failedKeys)
null
.
cause
- the root causefailedKeys
- keys that failed the validation; may be null
Method Detail |
public java.util.Enumeration getFailedKeys()
Enumeration
if no failed keys are available.
Enumeration
if no failed keys are available.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |