Companion

object Companion

Conversions between the wire body and DappException.

Functions

Link copied to clipboard
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.

Link copied to clipboard

The wire body for exception. Falls back to the error code's name when the exception has no message.