PortletException class defines a general exception
that a portlet can throw when it is unable to perform its operation
successfully.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PortletException(String
the exception text text)Constructs a new portlet exception with the given text. |
| public | PortletException(String
the exception text text, Throwable the root cause cause)Constructs a new portlet exception when the portlet needs to do the following:
|
| public | PortletException(Throwable
the root cause cause)Constructs a new portlet exception when the portlet needs to throw an exception. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PortletException | back to summary |
|---|---|
| public PortletException() Constructs a new portlet exception. | |
| PortletException | back to summary |
|---|---|
| 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.
| |
| PortletException | back to summary |
|---|---|
| public PortletException(String text, Throwable cause) Constructs a new portlet exception when the portlet needs to do the following:
| |
| PortletException | back to summary |
|---|---|
| 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.
| |