Constructor McpTransportException
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
messagestringThe 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
messagestringThe message that describes the error.
innerExceptionExceptionThe 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
messagestringThe message that describes the error.
transportTypestringThe transport type that raised the exception.
errorCodeint?An optional error code (e.g., process exit code).
isRecoverableboolWhether the error is potentially recoverable.
innerExceptionExceptionThe exception that caused this exception.