pub enum Error {
Show 14 variants
BadArgument(String),
BadData(String),
FromBase58Error(FromBase58Error),
FromHexError(FromHexError),
FromUtf8Error(FromUtf8Error),
IllegalState(String),
InvalidOperation(String),
IOError(Error),
ParseIntError(ParseIntError),
ScriptError(String),
Secp256k1Error(Error),
Timeout,
UnspecifiedRingError,
Unsupported(String),
}
Expand description
Standard error type used in the library
Variants§
BadArgument(String)
An argument provided is invalid
BadData(String)
The data given is not valid
FromBase58Error(FromBase58Error)
Base58 string could not be decoded
FromHexError(FromHexError)
Hex string could not be decoded
FromUtf8Error(FromUtf8Error)
UTF8 parsing error
IllegalState(String)
The state is not valid
InvalidOperation(String)
The operation is not valid on this object
IOError(Error)
Standard library IO error
ParseIntError(ParseIntError)
Error parsing an integer
ScriptError(String)
Error evaluating the script
Secp256k1Error(Error)
Error in the Secp256k1 library
Timeout
The operation timed out
UnspecifiedRingError
An unknown error in the Ring library
Unsupported(String)
The data or functionality is not supported by this library
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<FromBase58Error> for Error
impl From<FromBase58Error> for Error
Source§fn from(e: FromBase58Error) -> Self
fn from(e: FromBase58Error) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<Unspecified> for Error
impl From<Unspecified> for Error
Source§fn from(_: Unspecified) -> Self
fn from(_: Unspecified) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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