PortletModeException is thrown when a portlet
tries to use or set a portlet mode that is not supported by the current
runtime environment or the portlet.
| Modifier and Type | Field and Description |
|---|---|
| private transient PortletMode | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | PortletModeException(String
the exception text text, PortletMode the mode causing the exception mode)Constructs a new portlet mode exception with the given text and the portlet mode that caused this exception. |
| public | PortletModeException(String
the exception text text, Throwable the root cause cause, PortletMode the mode causing the exception mode)Constructs a new portlet mode exception when the portlet needs to do the following:
|
| public | PortletModeException(Throwable
the root cause cause, PortletMode the mode causing the exception mode)Constructs a new portlet mode exception when the portlet needs to throw an exception. |
| Modifier and Type | Method and Description |
|---|---|
| public PortletMode | Returns: the portlet mode that caused this exceptionReturns the unsupported portlet mode causing this exception. |
| _mode | back to summary |
|---|---|
| private transient PortletMode _mode | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PortletModeException | back to summary |
|---|---|
| public PortletModeException(String text, PortletMode mode) Constructs a new portlet mode exception with the given text and the portlet mode that caused this exception. The portlet container may use the text and portlet mode write it to a log.
| |
| PortletModeException | back to summary |
|---|---|
| public PortletModeException(String text, Throwable cause, PortletMode mode) Constructs a new portlet mode exception when the portlet needs to do the following:
| |
| PortletModeException | back to summary |
|---|---|
| public PortletModeException(Throwable cause, PortletMode mode) Constructs a new portlet mode exception when the portlet needs to throw an exception. The exception message is based on the localized message of the underlying exception and the portlet mode that caused this exception.
| |
| getMode | back to summary |
|---|---|
| public PortletMode getMode() Returns the unsupported portlet mode causing this exception.
| |