forked from modelcontextprotocol/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMcpTransportException.cs
37 lines (33 loc) · 1.24 KB
/
McpTransportException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Protocol/Transport/IMcpTransport.cs
namespace ModelContextProtocol.Protocol.Transport;
// Protocol/Transport/McpTransportException.cs
/// <summary>
/// Represents errors that occur in MCP transport operations.
/// </summary>
public class McpTransportException : Exception
{
/// <summary>
/// Initializes a new instance of the McpTransportException class.
/// </summary>
public McpTransportException()
{
}
/// <summary>
/// Initializes a new instance of the McpTransportException class with a specified error message.
/// </summary>
/// <param name="message">The message that describes the error.</param>
public McpTransportException(string message)
: base(message)
{
}
/// <summary>
/// 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.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="innerException">The exception that is the cause of the current exception.</param>
public McpTransportException(string message, Exception? innerException)
: base(message, innerException)
{
}
}