apis/core/relay_client/json_rpc_2/src/utils library

Properties

ignoreFormatExceptions StreamTransformer<Object?, Object?>
A transformer that silently drops FormatExceptions.
final
respondToFormatExceptions → StreamChannelTransformer<Object?, Object?>
A transformer that sends error responses on FormatExceptions.
final

Functions

getErrorMessage(dynamic error) String
Get a string description of an exception.
tryFinally(dynamic body(), dynamic whenComplete()) → void
Like try/finally, run body and ensure that whenComplete runs afterwards, regardless of whether body succeeded.

Typedefs

ZeroArgumentFunction = dynamic Function()