[][src]Struct xpx_supercontracts_sdk::statuses::ExecutionError

pub struct ExecutionError { /* fields omitted */ }

Result of unsuccessful supercontract execution.

An execution error consists of an error code and optional description. Descriptions are mostly used for developer purposes, not for interaction of the system with users.

Methods

impl ExecutionError[src]

pub fn new(code: i8) -> Self[src]

Constructs a new ExecutionError instance with the given error code.

pub fn with_description<T: Into<String>>(code: i8, description: T) -> Self[src]

Constructs a new ExecutionError instance with the given error code and description.

Trait Implementations

impl Clone for ExecutionError[src]

impl Debug for ExecutionError[src]

impl Eq for ExecutionError[src]

impl From<Error> for ExecutionError[src]

impl Ord for ExecutionError[src]

impl PartialEq<ExecutionError> for ExecutionError[src]

impl PartialOrd<ExecutionError> for ExecutionError[src]

impl StructuralEq for ExecutionError[src]

impl StructuralPartialEq for ExecutionError[src]

Auto Trait Implementations

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