Table of Contents

Constructor McpTransportException

Namespace
LMKit.Mcp.Transport
Assembly
LM-Kit.NET.dll

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 string

The message that describes the error.

McpTransportException(string, Exception)

Initializes a new instance of the McpTransportException class with a specified error message and inner exception.

public McpTransportException(string message, Exception innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that caused this exception.

McpTransportException(string, string, int?, bool, Exception)

Initializes a new instance of the McpTransportException class with detailed transport information.

public McpTransportException(string message, string transportType, int? errorCode = null, bool isRecoverable = false, Exception innerException = null)

Parameters

message string

The message that describes the error.

transportType string

The transport type that raised the exception.

errorCode int?

An optional error code (e.g., process exit code).

isRecoverable bool

Whether the error is potentially recoverable.

innerException Exception

The exception that caused this exception.