Class McpTransportSessionNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.modelcontextprotocol.spec.McpTransportSessionNotFoundException
All Implemented Interfaces:
Serializable

public class McpTransportSessionNotFoundException extends RuntimeException
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 Details

    • McpTransportSessionNotFoundException

      public McpTransportSessionNotFoundException(String sessionId, Exception cause)
      Construct an instance with a known cause.
      Parameters:
      sessionId - transport session identifier
      cause - the cause that was identified as a session not found error
    • McpTransportSessionNotFoundException

      public McpTransportSessionNotFoundException(String sessionId)
      Construct an instance with the session identifier but without a cause.
      Parameters:
      sessionId - transport session identifier