pub enum Error {
NonMinimalPush,
EarlyEndOfScript,
NumericOverflow,
BitcoinConsensus(Error),
UnknownSpentOutput(OutPoint),
SerializationError,
}
Expand description
Ways that a script might fail. Not everything is split up as much as it could be; patches welcome if more detailed errors would help you.
Variants
NonMinimalPush
Something did a non-minimal push; for more information see
https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#Push_operators
EarlyEndOfScript
Some opcode expected a parameter, but it was missing or truncated
NumericOverflow
Tried to read an array off the stack as a number when it was more than 4 bytes
BitcoinConsensus(Error)
bitcoinconsensus
only.Error validating the script with bitcoinconsensus library
UnknownSpentOutput(OutPoint)
bitcoinconsensus
only.Can not find the spent output
SerializationError
bitcoinconsensus
only.Can not serialize the spending transaction
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more