public class HttpSessionRequiredException extends ServletException
Constructor and Description |
---|
HttpSessionRequiredException(String msg)
Create a new HttpSessionRequiredException.
|
HttpSessionRequiredException(String msg,
String expectedAttribute)
Create a new HttpSessionRequiredException.
|
Modifier and Type | Method and Description |
---|---|
String |
getExpectedAttribute()
Return the name of the expected session attribute, if any.
|
getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpSessionRequiredException(String msg)
msg
- the detail messagepublic String getExpectedAttribute()