QueryCallRejectedError constructor

QueryCallRejectedError(
  1. Principal canisterId,
  2. String methodName,
  3. QueryResponseRejected result
)

Implementation

QueryCallRejectedError(
  Principal canisterId,
  String methodName,
  QueryResponseRejected result,
) : super(
        canisterId,
        methodName,
        'query',
        {
          'Status': result.status,
          'Code': result.rejectCode != null
              ? result.rejectCode.toString()
              : "Unknown Code '${result.rejectCode}'",
          'Message': result.rejectMessage ?? '',
        },
      );