Package io.modelcontextprotocol.spec
Class McpTransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.modelcontextprotocol.spec.McpTransportException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionMcpTransportException(String message) McpTransportException(String message, Throwable cause) McpTransportException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) McpTransportException(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
McpTransportException
-
McpTransportException
-
McpTransportException
-
McpTransportException
-