RPCError constructor

const RPCError({
  1. required String message,
  2. BlockchainNetwork? relatedNetwork,
  3. int? errorCode,
  4. Map<String, dynamic>? request,
  5. Map<String, dynamic>? jsonRpcErrpr,
  6. Map<String, String?>? details,
  7. int? statusCode,
})

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 optional request parameter holds the details of the RPC request that resulted in the error.

Implementation

const RPCError({
  required String message,
  this.relatedNetwork,
  this.errorCode,
  this.request,
  this.jsonRpcErrpr,
  Map<String, String?>? details,

  this.statusCode,
}) : super(message, details: details);