javax.portlet
public class PortletModeException extends PortletException
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.
| Field Summary | |
|---|---|
| PortletMode | mode |
| Constructor Summary | |
|---|---|
| PortletModeException(String text, PortletMode mode)
Constructs a new portlet mode exception with the given text and the
portlet mode that caused this exception. | |
| PortletModeException(String text, Throwable cause, PortletMode mode)
Constructs a new portlet mode exception when the portlet needs to do
the following:
| |
| PortletModeException(Throwable cause, PortletMode mode)
Constructs a new portlet mode exception when the portlet needs to throw an
exception. | |
| Method Summary | |
|---|---|
| PortletMode | getMode()
Returns the unsupported portlet mode causing this exception.
|
Parameters: text the exception text mode the mode causing the exception
Parameters: text the exception text cause the root cause mode the mode causing the exception
Parameters: cause the root cause mode the mode causing the exception
Returns: the portlet mode that caused this exception