QueryCallRejectedError constructor
QueryCallRejectedError(
- Principal canisterId,
- String methodName,
- 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 ?? "",
});