pub enum HederaError {
Show 77 variants
BytesArrayLength(usize),
ContractAddressLength(String),
FailedPreCheck(Status),
InvalidNodeAccountId,
InvalidNodeAddress(String),
MissingNodeCertHash,
InvalidNodeType,
InvalidResponseType,
NodeAddressBookDeserialize,
NoNode,
NoResponseHeader,
UnexpectedProtoType,
UnexpectedProtoResponseType(String),
ReceiptStatusError {
transaction_receipt: TransactionReceipt,
status: Status,
transaction_id: TransactionId,
},
NoResultTransactions,
InvalidSetType,
InvalidSetTransferId,
Unreacahble,
UnknownPublicKeyAlgorithm,
InvalidPublicKeyLength,
PkcsUnknownPublicKeyAlgorithm,
UnableToSerializeKey,
NoThresholdValue,
NoInnerKey,
UnableToValidateAccountAlias,
UnableToConvertAccountAlias,
UnknownHederaStatusCode(i32),
UnableToSerializeTransaction(EncodeError),
UnableToDeserializeTransaction(DecodeError),
UnsupportedTransactionBodyType,
InvalidMnemonic,
MissingInProto(String),
ValueNotSet(String),
NoAccountId,
NoFileProvided,
InvalidSolidityAddress,
InvalidShardNum,
InvalidChecksum,
InvalidTransactionIdFormat,
MaxAttempsExceeded(u8),
MaxChunksExceeded(usize, usize),
MaxQueryPaymentExceeded(Hbar, Hbar),
MemoLength(String),
NoResponse,
NoQueryResponse,
NoTransactionResponse,
ProtoClientFailed(Code),
QueryRequestTypeError,
ScheduledTransactionNodeAccountIdsSet,
TransactionRequestTypeError,
TransactionHashMustBeFrozen,
TransactionImmutable,
TransactionSerializationError(EncodeError),
TransactionDeserializationError(DecodeError),
TransactionNodeAccountIdNotSet,
TransactionNodeAccountIdOrClientNotSet,
TransactionSignWithFailed,
TransactionIdNotFrozen,
TransactionBodyNotSet,
UnknownIdFormat,
UnknownIdChecksumFormat,
UnknownNetworkType(String),
NoNetworkNodes,
UnknownTimestampFormat,
UnsupportedKeyType,
ClientBuilder(ClientBuilderError),
Asn1(Asn1Error),
Crypto(Error),
Config(ConfigError),
Float(ParseFloatError),
Int(ParseIntError),
Hex(FromHexError),
Http(Error),
Tonic(Error),
TryFromInt(TryFromIntError),
TryFrom(Infallible),
Uri(InvalidUri),
}Variants§
BytesArrayLength(usize)
ContractAddressLength(String)
FailedPreCheck(Status)
InvalidNodeAccountId
InvalidNodeAddress(String)
MissingNodeCertHash
InvalidNodeType
InvalidResponseType
NodeAddressBookDeserialize
NoNode
NoResponseHeader
UnexpectedProtoType
UnexpectedProtoResponseType(String)
ReceiptStatusError
NoResultTransactions
InvalidSetType
InvalidSetTransferId
Unreacahble
UnknownPublicKeyAlgorithm
InvalidPublicKeyLength
PkcsUnknownPublicKeyAlgorithm
UnableToSerializeKey
NoThresholdValue
NoInnerKey
UnableToValidateAccountAlias
UnableToConvertAccountAlias
UnknownHederaStatusCode(i32)
UnableToSerializeTransaction(EncodeError)
UnableToDeserializeTransaction(DecodeError)
UnsupportedTransactionBodyType
InvalidMnemonic
MissingInProto(String)
ValueNotSet(String)
NoAccountId
NoFileProvided
InvalidSolidityAddress
InvalidShardNum
InvalidChecksum
InvalidTransactionIdFormat
MaxAttempsExceeded(u8)
MaxChunksExceeded(usize, usize)
MaxQueryPaymentExceeded(Hbar, Hbar)
MemoLength(String)
NoResponse
NoQueryResponse
NoTransactionResponse
ProtoClientFailed(Code)
QueryRequestTypeError
ScheduledTransactionNodeAccountIdsSet
TransactionRequestTypeError
TransactionHashMustBeFrozen
TransactionImmutable
TransactionSerializationError(EncodeError)
TransactionDeserializationError(DecodeError)
TransactionNodeAccountIdNotSet
TransactionNodeAccountIdOrClientNotSet
TransactionSignWithFailed
TransactionIdNotFrozen
TransactionBodyNotSet
UnknownIdFormat
UnknownIdChecksumFormat
UnknownNetworkType(String)
NoNetworkNodes
UnknownTimestampFormat
UnsupportedKeyType
ClientBuilder(ClientBuilderError)
Asn1(Asn1Error)
Crypto(Error)
Config(ConfigError)
Float(ParseFloatError)
Int(ParseIntError)
Hex(FromHexError)
Http(Error)
Tonic(Error)
TryFromInt(TryFromIntError)
TryFrom(Infallible)
Uri(InvalidUri)
Trait Implementations§
Source§impl Debug for HederaError
impl Debug for HederaError
Source§impl Display for HederaError
impl Display for HederaError
Source§impl Error for HederaError
impl Error for HederaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Asn1Error> for HederaError
impl From<Asn1Error> for HederaError
Source§impl From<ConfigError> for HederaError
impl From<ConfigError> for HederaError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for HederaError
impl From<Error> for HederaError
Source§impl From<Error> for HederaError
impl From<Error> for HederaError
Source§impl From<Error> for HederaError
impl From<Error> for HederaError
Source§impl From<FromHexError> for HederaError
impl From<FromHexError> for HederaError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for HederaError
impl From<Infallible> for HederaError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for HederaError
impl From<InvalidUri> for HederaError
Source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for HederaError
impl From<ParseFloatError> for HederaError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for HederaError
impl From<ParseIntError> for HederaError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for HederaError
impl From<TryFromIntError> for HederaError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HederaError
impl !RefUnwindSafe for HederaError
impl Send for HederaError
impl Sync for HederaError
impl Unpin for HederaError
impl !UnwindSafe for HederaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request