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.reject_code != null
            ? result.reject_code.toString()
            : "Unknown Code '${result.reject_code}'",
        "Message": result.reject_message ?? "",
      });