Class McpTransportException

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

public class McpTransportException extends RuntimeException
Exception thrown when there is an issue with the transport layer of the Model Context Protocol (MCP).

This exception is used to indicate errors that occur during communication between the MCP client and server, such as connection failures, protocol violations, or unexpected responses.

Author:
Christian Tzolov
See Also:
  • Constructor Details

    • McpTransportException

      public McpTransportException(String message)
    • McpTransportException

      public McpTransportException(String message, Throwable cause)
    • McpTransportException

      public McpTransportException(Throwable cause)
    • McpTransportException

      public McpTransportException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)