TransactionError class

Implemented types
Annotations
  • @freezed

Constructors

TransactionError.connectivity()
const
factory
TransactionError.consensusNotReached()
const
factory
TransactionError.insufficientFunds()
const
factory
TransactionError.invalidConfirmation()
const
factory
TransactionError.invalidTransaction()
const
factory
TransactionError.other({int? code, Object? data, String? message})
const
factory
TransactionError.rpcError({required int code, required String message, Object? data})
const
factory
TransactionError.serviceAlreadyExists()
const
factory
TransactionError.serviceNotFound()
const
factory
TransactionError.timeout()
const
factory
TransactionError.unknownAccount({required String accountName})
const
factory
TransactionError.userRejected()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
messageLabel String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult timeout(_TransactionTimeout value), required TResult connectivity(_TransactionConnectionError value), required TResult consensusNotReached(_TransactionConsensusNotReachedError value), required TResult invalidTransaction(_TransactionInvalid value), required TResult invalidConfirmation(_TransactionInvalidConfirmation value), required TResult insufficientFunds(_TransactionInsufficientFunds value), required TResult serviceNotFound(_TransactionServiceNotFound value), required TResult serviceAlreadyExists(_TransactionServiceAlreadyExists value), required TResult userRejected(_TransactionUserRejected value), required TResult unknownAccount(_TransactionUnknownAccount value), required TResult rpcError(_TransactionRPCError value), required TResult other(_TransactionOtherError value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? timeout(_TransactionTimeout value)?, TResult? connectivity(_TransactionConnectionError value)?, TResult? consensusNotReached(_TransactionConsensusNotReachedError value)?, TResult? invalidTransaction(_TransactionInvalid value)?, TResult? invalidConfirmation(_TransactionInvalidConfirmation value)?, TResult? insufficientFunds(_TransactionInsufficientFunds value)?, TResult? serviceNotFound(_TransactionServiceNotFound value)?, TResult? serviceAlreadyExists(_TransactionServiceAlreadyExists value)?, TResult? userRejected(_TransactionUserRejected value)?, TResult? unknownAccount(_TransactionUnknownAccount value)?, TResult? rpcError(_TransactionRPCError value)?, TResult? other(_TransactionOtherError value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult timeout(_TransactionTimeout value)?, TResult connectivity(_TransactionConnectionError value)?, TResult consensusNotReached(_TransactionConsensusNotReachedError value)?, TResult invalidTransaction(_TransactionInvalid value)?, TResult invalidConfirmation(_TransactionInvalidConfirmation value)?, TResult insufficientFunds(_TransactionInsufficientFunds value)?, TResult serviceNotFound(_TransactionServiceNotFound value)?, TResult serviceAlreadyExists(_TransactionServiceAlreadyExists value)?, TResult userRejected(_TransactionUserRejected value)?, TResult unknownAccount(_TransactionUnknownAccount value)?, TResult rpcError(_TransactionRPCError value)?, TResult other(_TransactionOtherError value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult timeout()?, TResult connectivity()?, TResult consensusNotReached()?, TResult invalidTransaction()?, TResult invalidConfirmation()?, TResult insufficientFunds()?, TResult serviceNotFound()?, TResult serviceAlreadyExists()?, TResult userRejected()?, TResult unknownAccount(String accountName)?, TResult rpcError(int code, String message, Object? data)?, TResult other(int? code, Object? data, String? message)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult timeout(), required TResult connectivity(), required TResult consensusNotReached(), required TResult invalidTransaction(), required TResult invalidConfirmation(), required TResult insufficientFunds(), required TResult serviceNotFound(), required TResult serviceAlreadyExists(), required TResult userRejected(), required TResult unknownAccount(String accountName), required TResult rpcError(int code, String message, Object? data), required TResult other(int? code, Object? data, String? message)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? timeout()?, TResult? connectivity()?, TResult? consensusNotReached()?, TResult? invalidTransaction()?, TResult? invalidConfirmation()?, TResult? insufficientFunds()?, TResult? serviceNotFound()?, TResult? serviceAlreadyExists()?, TResult? userRejected()?, TResult? unknownAccount(String accountName)?, TResult? rpcError(int code, String message, Object? data)?, TResult? other(int? code, Object? data, String? message)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited