pub enum Error {
Show 30 variants
AccessDenied,
NoSuchLoginPacket,
LoginPacketExists,
NoSuchData,
DataExists,
NoSuchEntry,
TooManyEntries,
InvalidEntryActions(BTreeMap<Vec<u8>, EntryError>),
NoSuchKey,
DuplicateEntryKeys,
InvalidOwners,
InvalidSuccessor(u64),
InvalidOwnersSuccessor(u64),
OpNotCausallyReady,
InvalidOperation,
SigningKeyTypeMismatch,
InvalidSignature,
DuplicateMessageId,
NetworkOther(String),
LossOfPrecision,
ExcessiveValue,
FailedToParse(String),
TransferIdExists,
InsufficientBalance,
NoSuchBalance,
NoSuchSender,
NoSuchRecipient,
BalanceExists,
ExceededSize,
Unexpected(String),
}Expand description
Main error type for the crate.
Variants§
AccessDenied
Access is denied for a given requester
NoSuchLoginPacket
Login packet does not exist
LoginPacketExists
Attempt to store a login packet at an already occupied address
NoSuchData
Requested data not found
DataExists
Attempt to create a mutable data when data with such a name already exists
NoSuchEntry
Requested entry not found
TooManyEntries
Exceeded a limit on a number of entries
InvalidEntryActions(BTreeMap<Vec<u8>, EntryError>)
Some entry actions are not valid.
NoSuchKey
Key does not exist
DuplicateEntryKeys
Duplicate Entries in this push
InvalidOwners
The list of owner keys is invalid
InvalidSuccessor(u64)
Invalid version for performing a given mutating operation. Contains the current data version.
InvalidOwnersSuccessor(u64)
Invalid version for performing a given mutating operation. Contains the current owners version.
OpNotCausallyReady
Invalid mutating operation as it causality dependency is currently not satisfied
InvalidOperation
Invalid Operation such as a POST on ImmutableData
SigningKeyTypeMismatch
Mismatch between key type and signature type.
InvalidSignature
Failed signature validation.
DuplicateMessageId
Received a request with a duplicate MessageId
NetworkOther(String)
Network error occurring at Vault level which has no bearing on clients, e.g. serialisation failure or database failure
LossOfPrecision
While parsing, precision would be lost.
ExcessiveValue
The coin amount would exceed
the maximum value for Money.
FailedToParse(String)
Failed to parse the string as Money.
TransferIdExists
Transfer ID already exists.
InsufficientBalance
Insufficient money.
NoSuchBalance
Inexistent balance.
NoSuchSender
Inexistent sender balance.
NoSuchRecipient
Inexistent recipient balance.
BalanceExists
Coin balance already exists.
ExceededSize
Expected data size exceeded.
Unexpected(String)
Unexpected error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Source§impl Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
impl Eq for Error
impl StructuralPartialEq for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace carried by this failure, if it
carries one. Read moreSource§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>
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>
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