RPCError constructor

RPCError(
  1. String? callingMethod,
  2. int code, [
  3. dynamic message,
  4. Map? data,
])

Implementation

RPCError(this.callingMethod, this.code, [message, this.data])
    : message =
          message ?? RPCErrorKind.fromCode(code)?.message ?? 'Unknown error';