Enum ergotree_interpreter::eval::EvalError[][src]

pub enum EvalError {
    InvalidResultType,
    UnexpectedExpr(String),
    CostError(CostError),
    TryExtractFrom(TryExtractFromError),
    NotFound(String),
    RegisterIdOutOfBounds(String),
    UnexpectedValue(String),
    ArithmeticException(String),
    ErgoBoxNotFound(IrErgoBoxArenaError),
    Misc(String),
}

Interpreter errors

Variants

InvalidResultType

Only boolean or SigmaBoolean is a valid result expr type

UnexpectedExpr(String)

Unexpected Expr encountered during the evaluation

CostError(CostError)

Error on cost calculation

TryExtractFrom(TryExtractFromError)

Unexpected value type

NotFound(String)

Not found (missing value, argument, etc.)

RegisterIdOutOfBounds(String)

Register id out of bounds

UnexpectedValue(String)

Unexpected value

ArithmeticException(String)

Arithmetic exception error

ErgoBoxNotFound(IrErgoBoxArenaError)

Cannot find ErgoBox in Context

Misc(String)

Misc error

Trait Implementations

impl Clone for EvalError[src]

impl Debug for EvalError[src]

impl Display for EvalError[src]

impl Eq for EvalError[src]

impl Error for EvalError[src]

impl From<EvalError> for VerifierError[src]

impl From<IrErgoBoxArenaError> for EvalError[src]

impl From<TryExtractFromError> for EvalError[src]

impl PartialEq<EvalError> for EvalError[src]

impl StructuralEq for EvalError[src]

impl StructuralPartialEq for EvalError[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> 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> 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<F> TryExtractInto<F> for F[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>,