javax.portlet
Class PortletModeException
public class PortletModeException
The 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.
PortletModeException(String text, Throwable cause, PortletMode mode) - Constructs a new portlet mode exception when the portlet needs to do
the following:
throw an exception
- include a message about the "root cause" that interfered
with its normal operation
- include a description message
- include the portlet mode that caused this exception
|
PortletModeException(String text, PortletMode mode) - Constructs a new portlet mode exception with the given text and the
portlet mode that caused this exception.
|
PortletModeException(Throwable cause, PortletMode mode) - Constructs a new portlet mode exception when the portlet needs to throw an
exception.
|
PortletModeException
public PortletModeException(String text,
Throwable cause,
PortletMode mode)
Constructs a new portlet mode exception when the portlet needs to do
the following:
throw an exception
- include a message about the "root cause" that interfered
with its normal operation
- include a description message
- include the portlet mode that caused this exception
text
- the exception textcause
- the root causemode
- the mode causing the exception
PortletModeException
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.
text
- the exception textmode
- the mode causing the exception
PortletModeException
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.
cause
- the root causemode
- the mode causing the exception
getMode
public PortletMode getMode()
Returns the unsupported portlet mode causing this exception.
- the portlet mode that caused this exception