Class McpTransportException
- Namespace
- ModelContextProtocol.Protocol.Transport
- Assembly
- ModelContextProtocol.dll
Represents errors that occur in MCP transport operations.
public class McpTransportException : Exception, ISerializable
- Inheritance
-
McpTransportException
- Implements
- Inherited Members
Constructors
McpTransportException()
Initializes a new instance of the McpTransportException class.
public McpTransportException()
McpTransportException(string)
Initializes a new instance of the McpTransportException class with a specified error message.
public McpTransportException(string message)
Parameters
message
stringThe message that describes the error.
McpTransportException(string, Exception?)
Initializes a new instance of the McpTransportException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public McpTransportException(string message, Exception? innerException)