Build a JSON‐RPC error object.

Synopsis

Declared in <rpc/request.h>

UniValue
JSONRPCError(
    int code,
    std::string const& message);

Return Value

A JSON object representing the error.

Parameters

Name

Description

code

The numeric error code.

message

The human‐readable error message.

Created with MrDocs