[#JSONRPCError]
= JSONRPCError
:mrdocs:

Build a JSON&hyphen;RPC error object&period;

== Synopsis

Declared in `&lt;rpc&sol;request&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
JSONRPCError(
    int code,
    std::string const& message);
----

== Return Value

A JSON object representing the error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *code*
| The numeric error code&period;
| *message*
| The human&hyphen;readable error message&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
