Package org.springframework.web
Class HttpSessionRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.HttpSessionRequiredException
- All Implemented Interfaces:
- Serializable
Exception thrown when an HTTP request handler requires a pre-existing session.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new HttpSessionRequiredException.HttpSessionRequiredException(String msg, String expectedAttribute) Create a new HttpSessionRequiredException.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the name of the expected session attribute, if any.Methods inherited from class jakarta.servlet.ServletExceptiongetRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
HttpSessionRequiredExceptionCreate a new HttpSessionRequiredException.- Parameters:
- msg- the detail message
 
- 
HttpSessionRequiredExceptionCreate a new HttpSessionRequiredException.- Parameters:
- msg- the detail message
- expectedAttribute- the name of the expected session attribute
- Since:
- 4.3
 
 
- 
- 
Method Details- 
getExpectedAttributeReturn the name of the expected session attribute, if any.- Since:
- 4.3
 
 
-