Package org.springframework.ai.session
Class SessionAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.springframework.ai.session.SessionAlreadyExistsException
- All Implemented Interfaces:
Serializable
Thrown by
SessionService.create(org.springframework.ai.session.CreateSessionRequest) when a session with the requested id exists;
the existing session is left untouched. Two callers that create the same id
concurrently get one session and one of these, so the second can read what the first
created; SessionService.findOrCreate(org.springframework.ai.session.CreateSessionRequest) does.- Since:
- 2.1.0
- Author:
- Christian Tzolov
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe id of the session that already exists.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SessionAlreadyExistsException
-
-
Method Details
-
getSessionId
The id of the session that already exists.
-