classifyQueueFailure function
Map a queueSend failure to a SendFormFault. Same kind-only discipline.
queuedSendsFull is the one queue-specific kind; everything else mirrors
classifyProposeFailure's categorical mapping (compose-time errors are
identical, since queue composes the same URI).
Implementation
SendFormFault classifyQueueFailure(Object error) {
if (error is WalletApiError &&
error.kind is WalletErrorKind_QueuedSendsFull) {
return const SendCategoricalFault(SendFaultReason.queueFull);
}
return classifyProposeFailure(error);
}