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.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
PortletMode |
getMode()
Returns the unsupported portlet mode causing this exception.
|
getCause, printStackTrace, printStackTrace, printStackTraceaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic PortletModeException(String text, PortletMode mode)
text - the exception textmode - the mode causing the exceptionpublic PortletModeException(String text, Throwable cause, PortletMode mode)
text - the exception textcause - the root causemode - the mode causing the exceptionpublic PortletModeException(Throwable cause, PortletMode mode)
cause - the root causemode - the mode causing the exceptionpublic PortletMode getMode()
Copyright © 2021. All rights reserved.