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