org.apache.jetspeed.portlet
Class PortletException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.apache.jetspeed.portlet.PortletException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AccessDeniedException, UnavailableException
- public class PortletException
- extends Exception
The PortletException
class defines a general exception that a
portlet can throw when it encounters difficulty.
- See Also:
- Serialized Form
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 throw an
exception and include a message about the "root case" that interfered
with its normal operation, including a description message. |
PortletException(Throwable cause)
Constructs a new portlet exception when the portlet needs to throw an
exception. |
PortletException
public PortletException()
- Constructs a new portlet exception.
PortletException
public PortletException(String 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
PortletException
public PortletException(String text,
Throwable cause)
- Constructs a new portlet exception when the portlet needs to throw an
exception and include a message about the "root case" that interfered
with its normal operation, including a description message.
- Parameters:
aText
- the exception textaCause
- the root cause
PortletException
public PortletException(Throwable 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:
aCause
- the root cause
getRootCause
public Throwable getRootCause()
- Returns the exception that cause this portlet exception.
- Returns:
- the
Throwable
that caused this portlet exception.