RPCError constructor

const RPCError({
  1. required String message,
  2. required int errorCode,
  3. required dynamic data,
  4. required Map<String, dynamic> request,
})

Creates an instance of RPCError.

The errorCode parameter represents the error code associated with the RPC error. The message parameter provides a human-readable description of the error. The data parameter contains additional data associated with the error. The optional request parameter holds the details of the RPC request that resulted in the error.

Implementation

const RPCError(
    {required this.message,
    required this.errorCode,
    required this.data,
    required this.request});