Enum sn_node::Error[][src]

#[non_exhaustive]pub enum Error {
    BalanceExists,
    NotEnoughSpace,
    NodeNotFound,
    NoSuchChunk,
    TempDirCreationFailed(String),
    NoStoreId,
    CouldNotCombineSignatures,
    DataExists,
    Io(Error),
    JsonSerialisation(Error),
    Bincode(Error),
    ClientMessage(Error),
    Message(Error),
    PickleDb(Error),
    NetworkData(Error),
    Transfer(Error),
    Routing(Error),
    Onboarding,
    TransferAlreadyRegistered,
    InvalidSignedTransfer(Dot<PublicKey>),
    InvalidPropagatedTransfer(CreditAgreementProof),
    InvalidMessage(MessageIdString),
    InvalidOwners(PublicKey),
    InvalidOperation,
    NoErrorMapping(String),
    Logic(String),
}

Node error variants.

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.
BalanceExists

The key balance already exists when it was expected to be empty (during section genesis)

NotEnoughSpace

Not enough space in ChunkStore to perform put.

NodeNotFound

Node not found for rewarding

NoSuchChunk

Key, Value pair not found in ChunkStore.

TempDirCreationFailed(String)

Creating temp directory failed.

NoStoreId

Chunk Store Id could not be found

CouldNotCombineSignatures

Threshold crypto combine signatures error

DataExists

Chunk already exists for this node

Io(Error)

I/O error.

JsonSerialisation(Error)

JSON serialisation error.

Bincode(Error)

Bincode error.

ClientMessage(Error)

Network message error.

Message(Error)

Network message error.

PickleDb(Error)

PickleDb error.

NetworkData(Error)

NetworkData error.

Transfer(Error)

sn_transfers error.

Routing(Error)

Routing error.

Onboarding

Onboarding error

TransferAlreadyRegistered

Transfer has already been registered

InvalidSignedTransfer(Dot<PublicKey>)

Transfer message is invalid.

InvalidPropagatedTransfer(CreditAgreementProof)

Transfer message is invalid.

InvalidMessage(MessageIdString)

Message is invalid.

InvalidOwners(PublicKey)

Data owner provided is invalid.

InvalidOperation

Data operation is invalid, eg private operation on public data

NoErrorMapping(String)

No mapping to sn_messages::Error could be found. Either we need a new error there, or we need to handle or convert this error before sending it as a message

Logic(String)

Logic error.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Box<ErrorKind, Global>> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

Auto Trait Implementations

Blanket Implementations

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<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> Same<T> for T

type Output = T

Should always be Self

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>,