decode

fun decode(json: JsonObject): JsonRpcErrorBody

Parses an error member. A missing message reads as empty rather than failing: the code is the part a caller branches on.

Throws

with DappErrorCode.INTERNAL when code is not an integer.