Failure class

Implemented types
Annotations
  • @freezed

Constructors

Failure({required int code, String? message, Map<String, dynamic>? data, Object? cause, StackTrace? stack})
const
factory
Failure.connectivity()
factory
Failure.consensusNotReached()
factory
Failure.fromDeeplinkRpcFailure(DeeplinkRpcFailure failure)
factory
Failure.fromRpcException(RpcException exception)
factory
Failure.insufficientFunds()
factory
Failure.invalidConfirmation()
factory
Failure.invalidParams()
factory
Failure.invalidTransaction()
factory
Failure.other({Object? cause, StackTrace? stack})
factory
Failure.serviceAlreadyExists()
factory
Failure.serviceNotFound()
factory
Failure.timeout()
factory
Failure.unknownAccount()
factory
Failure.unsupportedMethod()
factory
Failure.userRejected()
factory

Properties

cause Object?
no setterinherited
code int
no setterinherited
copyWith → $FailureCopyWith<Failure>
no setterinherited
data Map<String, dynamic>?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack StackTrace?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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