spring-framework / org.springframework.web / HttpSessionRequiredException

HttpSessionRequiredException

open class HttpSessionRequiredException : ServletException

Exception thrown when an HTTP request handler requires a pre-existing session.

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

HttpSessionRequiredException(msg: String)
HttpSessionRequiredException(msg: String, expectedAttribute: String)

Create a new HttpSessionRequiredException.

Functions

getExpectedAttribute

open fun getExpectedAttribute(): String

Return the name of the expected session attribute, if any.