public class HttpSessionRequiredException
extends ServletException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
expectedAttribute |
Constructor and Description |
---|
HttpSessionRequiredException(java.lang.String msg)
Create a new HttpSessionRequiredException.
|
HttpSessionRequiredException(java.lang.String msg,
java.lang.String expectedAttribute)
Create a new HttpSessionRequiredException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpectedAttribute()
Return the name of the expected session attribute, if any.
|
public HttpSessionRequiredException(java.lang.String msg)
msg
- the detail messagepublic HttpSessionRequiredException(java.lang.String msg, java.lang.String expectedAttribute)
msg
- the detail messageexpectedAttribute
- the name of the expected session attribute