[][src]Enum exonum::runtime::error::ErrorKind

pub enum ErrorKind {
    Panic,
    Dispatcher {
        code: u8,
    },
    Runtime {
        code: u8,
    },
    Service {
        code: u8,
    },
}

Kind of execution error, indicates in which module error occurred.

Variants

Panic

Operation execution has been finished with panic.

Dispatcher

An error in dispatcher during the execution occurred.

Fields of Dispatcher

code: u8

Error code, available values ​​can be found in the description of the dispatcher's errors.

Runtime

An error in the runtime occurred.

Fields of Runtime

code: u8

User-defined error code. Error codes can have different meanings for the different runtimes.

Service

An error during the service's transaction execution occurred.

Fields of Service

code: u8

User-defined error code. Error codes can have different meanings for the different transactions and services.

Methods

impl ErrorKind[src]

pub fn panic() -> Self[src]

Creates panic error.

pub fn dispatcher(code: impl Into<u8>) -> Self[src]

Creates dispatcher error with the specified code.

pub fn runtime(code: impl Into<u8>) -> Self[src]

Creates runtime error with the specified code.

pub fn service(code: impl Into<u8>) -> Self[src]

Creates service error with the specified code.

Trait Implementations

impl From<Error> for ErrorKind[src]

impl From<Error> for ErrorKind[src]

impl Clone for ErrorKind[src]

impl Copy for ErrorKind[src]

impl Eq for ErrorKind[src]

impl Ord for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl PartialOrd<ErrorKind> for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Hash for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[src]

impl StructuralEq for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

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

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 = !

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

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

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

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

impl<T> Erased for T

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