failure

fun failure(id: JsonElement?, error: JsonRpcErrorBody): JsonRpcResponse

A failed response carrying error verbatim.


fun failure(id: JsonElement?, exception: DappException): JsonRpcResponse

A failed response whose error body is built from exception by JsonRpcErrorBody.from.