Enum ckb_script::ScriptError [−][src]
Script execution error.
Variants
The field code_hash in script is invalid
ExceededMaximumCycles(Cycle)The script consumes too much cycles
script.type_hash hits multiple cells with different data
ValidationFailure(i8)Non-zero exit code returns by script
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]
fn clone(&self) -> ScriptError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ScriptError[src]
impl Display for ScriptError[src]
impl Eq for ScriptError[src]
impl Error for ScriptError[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn description(&self) -> &str1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl PartialEq<ScriptError> for ScriptError[src]
fn eq(&self, other: &ScriptError) -> bool[src]
fn ne(&self, other: &ScriptError) -> bool[src]
impl StructuralEq for ScriptError[src]
impl StructuralPartialEq for ScriptError[src]
Auto Trait Implementations
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnwindSafe for ScriptError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,