Enum private_tx::Error[][src]

pub enum Error {
    Io(Error),
    Decoder(DecoderError),
    Trie(TrieError),
    TxPool(Error<<VerifiedPrivateTransaction as VerifiedTransaction>::Hash>),
    Crypto(CryptoError),
    Json(SerdeError),
    Encrypt(String),
    Decrypt(String),
    NotAuthorised(Address),
    TooManyContracts,
    Call(String),
    StatePruned,
    StateIncorrect,
    BadTransactionType,
    ContractDoesNotExist,
    ClientIsMalformed,
    QueueIsFull,
    PrivateTransactionAlreadyImported,
    PrivateTransactionNotFound,
    SignerAccountNotSet,
    ValidatorAccountNotSet,
    KeyServerAccountNotSet,
    PrivateStateNotFound,
    DatabaseWriteError,
    EncryptionKeyNotFound(Address),
    KeyServerNotSet,
    TxNotFoundInLog,
    LoggingPathNotSet,
    TimestampOverflow,
    Execution(ExecutionError),
    Transaction(TransactionError),
    Vapcore(VapcoreError),
    Msg(String),
}

Variants

Io(Error)

Error concerning the Rust standard library’s IO subsystem.

Decoder(DecoderError)

RLP decoding error.

Trie(TrieError)

Error concerning TrieDBs.

Transaction pool error.

Crypto(CryptoError)

Crypto error.

Serialization error.

Encrypt(String)

Encryption error.

Decrypt(String)

Decryption error.

NotAuthorised(Address)

Address not authorized.

TooManyContracts

Transaction creates more than one contract.

Call(String)

Contract call error.

StatePruned

State is not available.

StateIncorrect

State is incorrect.

BadTransactionType

Wrong private transaction type.

ContractDoesNotExist

Contract does not exist or was not created.

ClientIsMalformed

Reference to the client is corrupted.

QueueIsFull

Queue of private transactions for verification is full.

PrivateTransactionAlreadyImported

The transaction already exists in queue of private transactions.

PrivateTransactionNotFound

The information about private transaction is not found in the store.

SignerAccountNotSet

Account for signing public transactions not set.

ValidatorAccountNotSet

Account for validating private transactions not set.

KeyServerAccountNotSet

Account for signing requests to key server not set.

PrivateStateNotFound

Private state for the contract was not found in the local storage.

DatabaseWriteError

Cannot write state to the local database.

EncryptionKeyNotFound(Address)

Encryption key is not found on key server.

KeyServerNotSet

Key server URL is not set.

TxNotFoundInLog

Transaction not found in logs.

LoggingPathNotSet

Path for logging not set.

TimestampOverflow

Timestamp overflow error.

Execution(ExecutionError)

VM execution error.

Transaction(TransactionError)

Error of transactions processing.

Vapcore(VapcoreError)

General vapcore error.

Msg(String)

A convenient variant for String.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl<E> From<Box<E, Global>> for Error where
    Error: From<E>, 
[src]

impl From<DecoderError> for Error[src]

impl From<Error<<VerifiedPrivateTransaction as VerifiedTransaction>::Hash>> 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<ExecutionError> for Error[src]

impl From<String> for Error[src]

impl From<TrieError<H256, DecoderError>> for Error[src]

impl From<VapcoreError> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Erased for T

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Pointable for T

type Init = T

The type for initializers.

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