javax.portlet
public class PortletException extends Exception
PortletException
class defines a general exception
that a portlet can throw when it is unable to perform its operation
successfully.
Field Summary | |
---|---|
Throwable | cause |
Constructor Summary | |
---|---|
PortletException()
Constructs a new portlet exception. | |
PortletException(String text)
Constructs a new portlet exception with the given text. | |
PortletException(String text, Throwable cause)
Constructs a new portlet exception when the portlet needs to do
the following:
| |
PortletException(Throwable cause)
Constructs a new portlet exception when the portlet needs to throw an
exception. |
Method Summary | |
---|---|
Throwable | getCause()
Returns the cause of this throwable or null if the
cause is nonexistent or unknown. |
void | printStackTrace()
Prints the stack trace of this exception to the standard error stream. |
void | printStackTrace(PrintStream out)
Prints the stack trace of this exception to the specified print stream.
|
void | printStackTrace(PrintWriter out)
Prints the stack trace of this exception to the specified print writer.
|
Parameters: text the exception text
Parameters: text the exception text cause the root cause
Parameters: cause the root cause
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.
Returns: the cause of this throwable or null
if the
cause is nonexistent or unknown.
Parameters: out the PrintStream
to be used for output
Parameters: out the PrintWriter
to be used for output