nsmcp::Protocol method error (public)
<instance of nsmcp::Protocol> 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.
Source code: return [ns_json value -- [list {} object [list jsonrpc string 2.0 id [lindex $id 1] [lindex $id 2] error object [list code number $code message string $message]]]]XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)