#[non_exhaustive]pub enum TrackingCopyError {
Show 25 variants
Storage(Error),
BytesRepr(Error),
NamedKeyNotFound(String),
KeyNotFound(Key),
AccountNotFound(Key),
TypeMismatch(StoredValueTypeMismatch),
Api(ApiError),
AddKeyFailure(AddKeyFailure),
RemoveKeyFailure(RemoveKeyFailure),
UpdateKeyFailure(UpdateKeyFailure),
SetThresholdFailure(SetThresholdFailure),
SystemContract(Error),
DeploymentAuthorizationFailure,
CLValue(CLValueError),
UnexpectedStoredValueVariant,
MissingSystemContractHash(String),
UnexpectedKeyVariant(Key),
CircularReference(String),
QueryDepthLimit {
depth: u64,
},
MissingBid(Key),
Authorization,
ValueNotFound(String),
Balance(BalanceFailure),
ContractNotFound(Key),
AddressableEntityDisable,
}Expand description
Possible tracking copy errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Storage(Error)
Storage error.
BytesRepr(Error)
Failed to (de)serialize bytes.
NamedKeyNotFound(String)
Unable to find named key.
KeyNotFound(Key)
Unable to find a key.
AccountNotFound(Key)
Unable to find an account.
TypeMismatch(StoredValueTypeMismatch)
Type mismatch error.
Api(ApiError)
ApiError.
AddKeyFailure(AddKeyFailure)
Error adding an associated key.
RemoveKeyFailure(RemoveKeyFailure)
Error removing an associated key.
UpdateKeyFailure(UpdateKeyFailure)
Error updating an associated key.
SetThresholdFailure(SetThresholdFailure)
Error setting threshold on associated key.
SystemContract(Error)
Error executing system contract.
DeploymentAuthorizationFailure
Weight of all used associated keys does not meet account’s deploy threshold.
CLValue(CLValueError)
Error converting a CLValue.
UnexpectedStoredValueVariant
Unexpected variant of a stored value.
MissingSystemContractHash(String)
Missing system contract hash.
UnexpectedKeyVariant(Key)
Invalid key
CircularReference(String)
Circular reference error.
QueryDepthLimit
Depth limit reached.
MissingBid(Key)
Missing bid.
Authorization
Not authorized.
ValueNotFound(String)
The value wasn’t found.
Balance(BalanceFailure)
Balance calculation failure.
ContractNotFound(Key)
Unable to find a contract.
AddressableEntityDisable
Attempted to fetch an entity or an associated record
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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<AddKeyFailure> for Error
impl From<AddKeyFailure> for Error
Source§fn from(err: AddKeyFailure) -> Self
fn from(err: AddKeyFailure) -> Self
Converts to this type from the input type.
Source§impl From<CLValueError> for Error
impl From<CLValueError> for Error
Source§fn from(e: CLValueError) -> Self
fn from(e: CLValueError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BalanceHoldError
impl From<Error> for BalanceHoldError
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BalanceHoldResult
impl From<Error> for BalanceHoldResult
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BalanceIdentifierPurseResult
impl From<Error> for BalanceIdentifierPurseResult
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BalanceResult
impl From<Error> for BalanceResult
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BurnError
impl From<Error> for BurnError
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ProtocolUpgradeError
impl From<Error> for ProtocolUpgradeError
Source§fn from(err: TrackingCopyError) -> Self
fn from(err: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StepError
impl From<Error> for StepError
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TransferError
impl From<Error> for TransferError
Source§fn from(tce: TrackingCopyError) -> Self
fn from(tce: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<RemoveKeyFailure> for Error
impl From<RemoveKeyFailure> for Error
Source§fn from(err: RemoveKeyFailure) -> Self
fn from(err: RemoveKeyFailure) -> Self
Converts to this type from the input type.
Source§impl From<SetThresholdFailure> for Error
impl From<SetThresholdFailure> for Error
Source§fn from(err: SetThresholdFailure) -> Self
fn from(err: SetThresholdFailure) -> Self
Converts to this type from the input type.
Source§impl From<UpdateKeyFailure> for Error
impl From<UpdateKeyFailure> for Error
Source§fn from(err: UpdateKeyFailure) -> Self
fn from(err: UpdateKeyFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more