messageLabel property
String
get
messageLabel
Implementation
String get messageLabel => map(
timeout: (_) => 'connection timeout',
connectivity: (_) => 'connectivity issue',
consensusNotReached: (_) => 'consensus not reached',
invalidTransaction: (_) => 'invalid transaction',
invalidConfirmation: (_) => 'invalid confirmation',
insufficientFunds: (_) => 'insufficient funds',
serviceNotFound: (_) => 'service not found',
serviceAlreadyExists: (_) => 'service already exists in the keychain',
userRejected: (_) => 'user rejected',
unknownAccount: (_) => 'unknown account',
rpcError: (_) => 'JSON RPC error',
other: (other) {
if (other.data != null && other.data is Map<String, dynamic>) {
final detailedMessage = extractTransactionErrorMessages(
other.data! as Map<String, dynamic>,
);
if (detailedMessage.isNotEmpty) {
return '${other.message}$detailedMessage';
}
}
return other.message ?? 'other error';
},
);