pub enum ProgramError {
Compilation(String),
WitnessSatisfaction(String),
Pruning(ExecutionError),
BitMachineCreation(LimitError),
Execution(ExecutionError),
UtxoIndexOutOfBounds {
input_index: usize,
utxo_count: usize,
},
ScriptPubkeyMismatch {
expected_hash: String,
actual_hash: String,
},
TxExtraction(Error),
InputIndexOverflow(TryFromIntError),
}Variants§
Compilation(String)
WitnessSatisfaction(String)
Pruning(ExecutionError)
BitMachineCreation(LimitError)
Execution(ExecutionError)
UtxoIndexOutOfBounds
ScriptPubkeyMismatch
TxExtraction(Error)
InputIndexOverflow(TryFromIntError)
Trait Implementations§
Source§impl Debug for ProgramError
impl Debug for ProgramError
Source§impl Display for ProgramError
impl Display for ProgramError
Source§impl Error for ProgramError
impl Error for ProgramError
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<Error> for ProgramError
impl From<Error> for ProgramError
Source§fn from(source: Error) -> ProgramError
fn from(source: Error) -> ProgramError
Converts to this type from the input type.
Source§impl From<ExecutionError> for ProgramError
impl From<ExecutionError> for ProgramError
Source§fn from(source: ExecutionError) -> ProgramError
fn from(source: ExecutionError) -> ProgramError
Converts to this type from the input type.
Source§impl From<LimitError> for ProgramError
impl From<LimitError> for ProgramError
Source§fn from(source: LimitError) -> ProgramError
fn from(source: LimitError) -> ProgramError
Converts to this type from the input type.
Source§impl From<ProgramError> for SignerError
impl From<ProgramError> for SignerError
Source§fn from(source: ProgramError) -> SignerError
fn from(source: ProgramError) -> SignerError
Converts to this type from the input type.
Source§impl From<TryFromIntError> for ProgramError
impl From<TryFromIntError> for ProgramError
Source§fn from(source: TryFromIntError) -> ProgramError
fn from(source: TryFromIntError) -> ProgramError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProgramError
impl RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl UnsafeUnpin for ProgramError
impl UnwindSafe for ProgramError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more