Class McpJsonRpcException

All Implemented Interfaces:
Serializable

Signals an intentional client-visible JSON-RPC error from an MCP handler.

Unexpected application failures should be allowed to propagate normally so Soklet can map them to its safe internal-error response. A handler's exception passes through McpHandlerContinuation.proceed() unchanged. An McpHandlerInterceptor may inspect and rethrow that exact object during the same invocation to preserve the intentional error, or return a method-compatible recovery result. An interceptor-authored exception, including a new instance carrying the same error, a wrapper, or an exception retained from an earlier invocation, fails closed as an unexpected failure.

Author:
Mark Allen
See Also: