Enum safe_network::types::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 22 variants
AccessDenied(PublicKey),
Serialisation(String),
EntryExists(u8),
InvalidEntryActions(BTreeMap<Vec<u8>, Error>),
NoSuchEntry,
NoSuchKey,
InvalidOwnerNotPublicKeySet,
PolicyNotSet,
InvalidSuccessor(u64),
OpNotCausallyReady,
InvalidOperation,
SigningKeyTypeMismatch,
InvalidSignature,
LossOfPrecision,
ExcessiveValue,
FailedToParse(String),
NoSuchRecipient,
ExceededSize,
OutOfRange,
CrdtMissingOpSignature,
CrdtUnexpectedState,
CrdtWrongAddress(RegisterAddress),
}
Expand description
Main error type for the crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AccessDenied(PublicKey)
Access denied for supplied PublicKey
Tuple Fields of AccessDenied
0: PublicKey
Serialisation(String)
Serialization error
Tuple Fields of Serialisation
0: String
EntryExists(u8)
Entry already exists. Contains the current entry Key.
Tuple Fields of EntryExists
0: u8
Supplied actions are not valid
Entry could not be found on the data
Key does not exist
Owner is not valid
No Policy has been set to the data
InvalidSuccessor(u64)
Invalid version for performing a given mutating operation. Contains the current data version.
Tuple Fields of InvalidSuccessor
0: u64
Invalid mutating operation as it causality dependency is currently not satisfied
Invalid Operation such as a POST on ImmutableData
Mismatch between key type and signature type.
Failed signature validation.
While parsing, precision would be lost.
The amount would exceed the maximum value for Token
(u64::MAX).
FailedToParse(String)
Failed to parse a string.
Tuple Fields of FailedToParse
0: String
Inexistent recipient balance.
Expected data size exceeded.
Number out of expected range.
The operation has not been signed by an actor PK and so cannot be validated.
The data for a given policy could not be located, so CRDT operations cannot be applied.
CrdtWrongAddress(RegisterAddress)
The CRDT operation cannot be applied as it targets a different content address.
Tuple Fields of CrdtWrongAddress
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more