pub enum ScriptError {
Show 24 variants
InvalidScript(String),
InvalidOpcode(u8),
StackUnderflow,
InvalidStackOperation(String),
MemoryLimitExceeded,
ScriptTooLong,
InvalidSignature(String),
InvalidPublicKey(String),
NumberTooLarge,
DivisionByZero,
VerifyFailed,
DisabledOpcode(String),
EqualVerifyFailed,
NumEqualVerifyFailed,
CheckSigVerifyFailed,
CheckMultiSigVerifyFailed,
NullDummyViolation,
CleanStackViolation,
PushOnlyViolation,
InvalidAddress(String),
InvalidFormat(String),
MinimalEncodingViolation,
InvalidLength(String),
Primitives(PrimitivesError),
}Expand description
Unified error type for all script operations.
Variants§
InvalidScript(String)
InvalidOpcode(u8)
StackUnderflow
InvalidStackOperation(String)
MemoryLimitExceeded
ScriptTooLong
InvalidSignature(String)
InvalidPublicKey(String)
NumberTooLarge
DivisionByZero
VerifyFailed
DisabledOpcode(String)
EqualVerifyFailed
NumEqualVerifyFailed
CheckSigVerifyFailed
CheckMultiSigVerifyFailed
NullDummyViolation
CleanStackViolation
PushOnlyViolation
InvalidAddress(String)
InvalidFormat(String)
MinimalEncodingViolation
InvalidLength(String)
Primitives(PrimitivesError)
Trait Implementations§
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PrimitivesError> for ScriptError
impl From<PrimitivesError> for ScriptError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<ScriptError> for TransactionError
impl From<ScriptError> for TransactionError
Source§fn from(source: ScriptError) -> Self
fn from(source: ScriptError) -> Self
Converts to this type from the input type.
Source§impl From<ScriptError> for WalletError
impl From<ScriptError> for WalletError
Source§fn from(e: ScriptError) -> Self
fn from(e: ScriptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin for ScriptError
impl UnwindSafe for ScriptError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more