com.ibm.portal.state.accessors.exceptions
Class StateAccessorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.portal.state.exceptions.StateException
com.ibm.portal.state.accessors.exceptions.StateAccessorException
- All Implemented Interfaces:
- Localized, java.io.Serializable
- Direct Known Subclasses:
- StateNotInRequestException, StateNotWriteableException
-
public abstract class StateAccessorException
- extends StateException
Exception which should be thrown within StateAccessor
implementations being not able to retrieve the StateHolder
from the current request.
NOTE: This API may only be used in the scope of an HTTP request in WebSphere Portal, i.e. within a theme.
The API can not be invoked directly by a custom servlet.
- Since:
- 5.1
- See Also:
- Serialized Form
Field Summary
|
protected javax.servlet.http.HttpServletRequest |
request
Servlet request that caused the exception |
Constructor Summary
|
StateAccessorException(javax.servlet.http.HttpServletRequest aRequest)
Initializes the exception with the request that caused it |
StateAccessorException(javax.servlet.http.HttpServletRequest aRequest,
java.lang.Exception aException)
Initializes the exception with the request that caused it |
Method Summary
|
javax.servlet.http.HttpServletRequest |
getRequest()
Return the servlet request the accessor operated on. |
Methods inherited from class java.lang.Throwable
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
request
protected final javax.servlet.http.HttpServletRequest request
- Servlet request that caused the exception
StateAccessorException
public StateAccessorException(javax.servlet.http.HttpServletRequest aRequest)
- Initializes the exception with the request that caused it
- Parameters:
- aRequest - Servlet request that caused the exception
StateAccessorException
public StateAccessorException(javax.servlet.http.HttpServletRequest aRequest,
java.lang.Exception aException)
- Initializes the exception with the request that caused it
- Parameters:
- aRequest - Servlet request that caused the exception
- aException - root exception
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
- Returns the servlet request the accessor operated on.
- Returns:
- Servlet request that caused the exception