pub enum Error {
Conversion(Error),
IOError(Error),
Deserialize(Error),
InvalidParameters(String),
InvalidState(String),
WalletError(Box<dyn Error + Send + Sync + 'static>),
BlockchainError(String),
StorageError(String),
OracleError(String),
DlcError(Error),
SecpError(Error),
}
Expand description
An error code.
Variants§
Conversion(Error)
Error that occured while converting from DLC message to internal representation.
IOError(Error)
An IO error.
Deserialize(Error)
Deserialize error
InvalidParameters(String)
Some invalid parameters were provided.
InvalidState(String)
An invalid state was encounter, likely to indicate a bug.
WalletError(Box<dyn Error + Send + Sync + 'static>)
An error occurred in the wallet component.
BlockchainError(String)
An error occurred in the blockchain component.
StorageError(String)
The storage component encountered an error.
OracleError(String)
The oracle component encountered an error.
DlcError(Error)
An error occurred in the DLC library.
SecpError(Error)
An error occurred in the Secp library.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
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