nsmcp::Protocol method error (public)

 <instance of nsmcp::Protocol[i]> error id code message

Defined in /usr/local/ns/tcl/nsmcp/protocol.tcl

Encode a JSON-RPC error response. Preserve the typed request identifier while constructing the standard error envelope.

Parameters:
id (required)
Typed request or retained evidence identifier.
code (required)
JSON-RPC error code.
message (required)
Diagnostic message text.
Returns:
Serialized JSON for the error response.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: