Enum ckb_script::ScriptError[][src]

pub enum ScriptError {
    InvalidCodeHash,
    ExceededMaximumCycles(Cycle),
    MultipleMatches,
    ValidationFailure(i8),
    EncounteredKnownBugs(Stringusize),
    VMInternalError(String),
}

Script execution error.

Variants

InvalidCodeHash

The field code_hash in script is invalid

ExceededMaximumCycles(Cycle)

The script consumes too much cycles

MultipleMatches

script.type_hash hits multiple cells with different data

ValidationFailure(i8)

Non-zero exit code returns by script

EncounteredKnownBugs(Stringusize)

Known bugs are detected in transaction script outputs

VMInternalError(String)

Known bugs are detected in transaction script outputs

Implementations

impl ScriptError[src]

pub fn input_lock_script(self, index: usize) -> TransactionScriptError[src]

Creates a script error originated from the lock script of the input cell at the specific index.

pub fn input_type_script(self, index: usize) -> TransactionScriptError[src]

Creates a script error originated from the type script of the input cell at the specific index.

pub fn output_type_script(self, index: usize) -> TransactionScriptError[src]

Creates a script error originated from the type script of the output cell at the specific index.

Trait Implementations

impl Clone for ScriptError[src]

impl Debug for ScriptError[src]

impl Display for ScriptError[src]

impl Eq for ScriptError[src]

impl Error for ScriptError[src]

impl PartialEq<ScriptError> for ScriptError[src]

impl StructuralEq for ScriptError[src]

impl StructuralPartialEq for ScriptError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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