Top Description Fields Constructors Methods
javax.portlet

public Class WindowStateException

extends PortletException
Class Inheritance

The WindowStateException is thrown when a portlet tries to use a window state that is not supported by the current runtime environment or the portlet.

Field Summary

Modifier and TypeField and Description
private transient WindowState
private static final long

Constructor Summary

AccessConstructor and Description
public
WindowStateException(String
the exception text
text
,
WindowState
the state causing the exception
state
)

Constructs a new window state exception with the given text.

public
WindowStateException(String
the exception text
text
,
Throwable
the root cause
cause
,
WindowState
the state causing the exception
state
)

Constructs a new window state exception when the portlet needs to do the following:

    <il>throw an exception
  • include a message about the "root cause" that interfered with its normal operation
  • include a description message
public
WindowStateException(Throwable
the root cause
cause
,
WindowState
the state causing the exception
state
)

Constructs a new window state exception when the portlet needs to throw an exception.

Method Summary

Modifier and TypeMethod and Description
public WindowState

Returns:

the window state causing this exception
getState
()

Returns the window state causing this exception.

Field Detail

_stateback to summary
private transient WindowState _state
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.portlet.PortletException.serialVersionUID.

Constructor Detail

WindowStateExceptionback to summary
public WindowStateException(String text, WindowState state)

Constructs a new window state exception with the given text. The portlet container may use the text write it to a log.

Parameters
text:String

the exception text

state:WindowState

the state causing the exception

WindowStateExceptionback to summary
public WindowStateException(String text, Throwable cause, WindowState state)

Constructs a new window state 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
Parameters
text:String

the exception text

cause:Throwable

the root cause

state:WindowState

the state causing the exception

WindowStateExceptionback to summary
public WindowStateException(Throwable cause, WindowState state)

Constructs a new window state exception when the portlet needs to throw an exception. The exception message is based on the localized message of the underlying exception.

Parameters
cause:Throwable

the root cause

state:WindowState

the state causing the exception

Method Detail

getStateback to summary
public WindowState getState()

Returns the window state causing this exception.

Returns:WindowState

the window state causing this exception