Enum bitcoin::blockdata::script::Error [] [src]

pub enum Error {
    EarlyEndOfScript,
    NumericOverflow,
}

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

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

Trait Implementations

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for Error
[src]

impl PartialEq for Error
[src]

fn eq(&self, __arg_0: &Error) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error
[src]

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

fn description(&self) -> &'static str

A short description of the error. Read more