Path: redb-route/redb.Route.Llm.Mcp/McpException.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm.Mcp/McpException.cs
----
namespace redb.Route.Llm.Mcp;
///
/// Thrown when an MCP server returns a JSON-RPC error, the transport fails,
/// or the protocol is violated. Catch at the MCP boundary; do not surface raw
/// JSON-RPC errors to the agent.
///
public class McpException : Exception
{
/// Creates a new with a message.
public McpException(string message) : base(message) { }
/// Creates a new with a message and inner exception.
public McpException(string message, Exception inner) : base(message, inner) { }
}