javax.portlet
public class: PortletException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.portlet.PortletException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PortletSecurityException, WindowStateException, ValidatorException, UnavailableException, PortletModeException, ReadOnlyException
The
PortletException class defines a general exception
that a portlet can throw when it is unable to perform its operation
successfully.
| Constructor: |
public PortletException() {
super();
}
Constructs a new portlet exception. |
public PortletException(String text) {
super(text);
}
Constructs a new portlet exception with the given text. The
portlet container may use the text write it to a log. Parameters:
text - the exception text
|
public PortletException(Throwable cause) {
super(cause);
_cause = cause;
// change this when going to jdk1.4: super (cause);
}
Constructs a new portlet exception when the portlet needs to throw an
exception. The exception's message is based on the localized message
of the underlying exception. Parameters:
cause - the root cause
|
public PortletException(String text,
Throwable cause) {
super(text, cause);
_cause = cause;
// change this when going to jdk1.4: super (text, cause);
}
Constructs a new portlet exception when the portlet needs to do
the following:
- throw an exception
- include the "root cause" exception
- include a description message
Parameters:
text - the exception text
cause - the root cause
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |