|
Portlet API (V1.0) | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.portlet.PortletException
The PortletException
class defines a general exception
that a portlet can throw when it is unable to perform its operation
successfully.
Constructor Summary | |
PortletException()
Constructs a new portlet exception. |
|
PortletException(java.lang.String text)
Constructs a new portlet exception with the given text. |
|
PortletException(java.lang.String text,
java.lang.Throwable 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 |
|
PortletException(java.lang.Throwable cause)
Constructs a new portlet exception when the portlet needs to throw an exception. |
Method Summary | |
java.lang.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(java.io.PrintStream out)
Prints the stack trace of this exception to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter out)
Prints the stack trace of this exception to the specified print writer. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PortletException()
public PortletException(java.lang.String text)
text
- the exception textpublic PortletException(java.lang.String text, java.lang.Throwable cause)
text
- the exception textcause
- the root causepublic PortletException(java.lang.Throwable cause)
cause
- the root causeMethod Detail |
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
out
- the PrintStream
to be used for outputpublic void printStackTrace(java.io.PrintWriter out)
printStackTrace
in class java.lang.Throwable
out
- the PrintWriter
to be used for outputpublic java.lang.Throwable getCause()
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.
null
if the
cause is nonexistent or unknown.
|
Portlet API (V1.0) | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |