| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception javax.portlet.PortletException
All known Subclasses: javax.portlet.WindowStateException, javax.portlet.PortletSecurityException, javax.portlet.ReadOnlyException, javax.portlet.PortletModeException, javax.portlet.ValidatorException, javax.portlet.UnavailableException,
PortletException | public class PortletException extends java.lang.Exception (Code) | | The PortletException class defines a general exception
that a portlet can throw when it is unable to perform its operation
successfully.
|
PortletException | public PortletException()(Code) | | Constructs a new portlet exception.
|
PortletException | public PortletException(String text)(Code) | | 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 |
PortletException | public PortletException(String text, Throwable cause)(Code) | | 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 Parameters: cause - the root cause |
PortletException | public PortletException(Throwable cause)(Code) | | 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 |
getCause | public Throwable getCause()(Code) | | Returns the cause of this throwable or null if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this throwable to get thrown.)
This implementation returns the cause that was supplied via one of
the constructors requiring a Throwable.
the cause of this throwable or null if thecause is nonexistent or unknown. |
printStackTrace | public void printStackTrace()(Code) | | Prints the stack trace of this exception to the standard error stream.
|
printStackTrace | public void printStackTrace(java.io.PrintStream out)(Code) | | Prints the stack trace of this exception to the specified print stream.
Parameters: out - the PrintStream to be used for output |
printStackTrace | public void printStackTrace(java.io.PrintWriter out)(Code) | | Prints the stack trace of this exception to the specified print writer.
Parameters: out - the PrintWriter to be used for output |
|
|
|