Package io.modelcontextprotocol.spec
Class McpTransportSessionNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.modelcontextprotocol.spec.McpTransportSessionNotFoundException
- All Implemented Interfaces:
Serializable
Exception that signifies that the server does not recognize the connecting client via
the presented transport session identifier.
- Author:
- Dariusz Jędrzejczyk
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMcpTransportSessionNotFoundException(String sessionId) Construct an instance with the session identifier but without acause.McpTransportSessionNotFoundException(String sessionId, Exception cause) Construct an instance with a knowncause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
McpTransportSessionNotFoundException
Construct an instance with a knowncause.- Parameters:
sessionId- transport session identifiercause- the cause that was identified as a session not found error
-
McpTransportSessionNotFoundException
Construct an instance with the session identifier but without acause.- Parameters:
sessionId- transport session identifier
-