Enum sn_node::Error[][src]

#[non_exhaustive]pub enum Error {
    NotAnAdult,
    NotAnElder,
    BalanceExists,
    NotEnoughSpace,
    NoSectionPublicKey,
    UnknownSectionKey(PublicKey),
    ProvidedPkIsNotBlsShare,
    ProvidedPkIsNotBls,
    NoSectionPublicKeySet,
    NoSectionPublicKeyKnown(XorName),
    InvalidRewardStage,
    NodeNotFoundForReward,
    NodeDoesNotHoldChunks,
    NoHoldersOfChunk,
    NoSuchChunk,
    NotChurningFunds,
    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(String),
    NoErrorMapping(String),
    Logic(String),
    Configuration(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.
NotAnAdult

Attempted to perform an operation meant only for Adults when we are not one.

NotAnElder

Attempted to perform an operation meant only for Elders when we are not one.

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.

NoSectionPublicKey

Not Section PublicKey.

UnknownSectionKey(PublicKey)

Unknown as a Section PublicKey.

ProvidedPkIsNotBlsShare

Not a Section PublicKeyShare.

ProvidedPkIsNotBls

Not a Section PublicKey.

NoSectionPublicKeySet

Not Section PublicKeySet.

NoSectionPublicKeyKnown(XorName)

Not Section PublicKey.

InvalidRewardStage

Unable to parse reward proposal.

NodeNotFoundForReward

Node not found for rewarding

NodeDoesNotHoldChunks

Node not found in holders db.

NoHoldersOfChunk

No holders of chunk in metadata db.

NoSuchChunk

Key, Value pair not found in ChunkStore.

NotChurningFunds

Unable to process fund churn message.

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(String)

Operation is invalid, eg signing validation

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.

Configuration(String)

Configuration 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

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

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