Enum sn_client::ErrorMessage[][src]

#[non_exhaustive]pub enum ErrorMessage {
    UnsupportedVersion(u16),
    UnsupportedSerialization(u16),
    AccessDenied(PublicKey),
    SignatureVerification(String),
    Serialization(String),
    NoSuchData,
    NoHistoryForPublicKey(PublicKey),
    FailedToWriteFile,
    DataExists,
    NoSuchEntry,
    TooManyEntries,
    NoSuchKey,
    NotEnoughSpace,
    DuplicateEntryKeys,
    InvalidOwners(PublicKey),
    PolicyNotSet,
    InvalidSuccessor(u64),
    InvalidOwnersSuccessor(u64),
    OpNotCausallyReady,
    InvalidPermissionsSuccessor(u64),
    InvalidOperation,
    SigningKeyTypeMismatch,
    InvalidSignature,
    DuplicateMessageId,
    LossOfPrecision,
    ExcessiveValue,
    TransactionIdExists,
    InsufficientBalance,
    NoSuchBalance,
    NoSuchSender,
    NoSuchRecipient,
    BalanceExists,
    ExceededSize,
    CrdtMissingOpSignature,
    CrdtUnexpectedState,
    EntryExists(u8),
    PaymentFailed,
    FailedToDelete,
    NodeWasNotRelocated,
    TargetSection(Error),
}

Main error type for the crate.

Variants (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.
UnsupportedVersion(u16)

Message read was built with an unsupported version.

UnsupportedSerialization(u16)

Message read contains a payload with an unsupported serialization type.

AccessDenied(PublicKey)

Access denied for supplied PublicKey

SignatureVerification(String)

Error occurred when atempting to verify signature

Serialization(String)

Serialization error

NoSuchData

Requested data not found

NoHistoryForPublicKey(PublicKey)

No history found for PublicKey

FailedToWriteFile

Failed to write file, likely due to a system Io error

DataExists

Provided data already exists on the network

NoSuchEntry

Entry could not be found on the data

TooManyEntries

Exceeds limit on entrites for the given data type

NoSuchKey

Key does not exist

NotEnoughSpace

Node NotEnoughSpace error

DuplicateEntryKeys

Duplicate Entries in this push

InvalidOwners(PublicKey)

The list of owner keys is invalid

PolicyNotSet

No Policy has been set to the data

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

InvalidPermissionsSuccessor(u64)

Invalid version for performing a given mutating operation. Contains the current permissions version.

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

LossOfPrecision

While parsing, precision would be lost.

ExcessiveValue

The amount would exceed the maximum value for Token (u64::MAX).

TransactionIdExists

Transaction ID already exists.

InsufficientBalance

Insufficient coins.

NoSuchBalance

Inexistent balance.

NoSuchSender

Inexistent sender balance.

NoSuchRecipient

Inexistent recipient balance.

BalanceExists

Coin balance already exists.

ExceededSize

Expected data size exceeded.

CrdtMissingOpSignature

The operation has not been signed by an actor PK and so cannot be validated.

CrdtUnexpectedState

The data for a given policy could not be located, so CRDT operations cannot be applied.

EntryExists(u8)

Entry already exists. Contains the current entry Key.

PaymentFailed

Problem registering the payment at a node

FailedToDelete

Node failed to delete the requested data for some reason.

NodeWasNotRelocated

The node hasn't left the section, and was not marked for relocation during reward operations

TargetSection(Error)

There was an error in the target section of a message. Probably related to section keys.

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl<'de> Deserialize<'de> for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl Hash for Error[src]

impl Ord for Error[src]

impl PartialEq<Error> for Error[src]

impl PartialOrd<Error> for Error[src]

impl Serialize for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<A> Actor for A where
    A: Clone + Ord + Hash
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Member for T where
    T: Clone + Eq + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,