pub enum EscrowError {
Condition(ConditionError),
InvalidState,
Identity(IdentityError),
Asset(AssetError),
InvalidChainOp(String),
Io(Error),
UnsupportedChain,
}Expand description
Errors arising from on-chain Escrow operations and parameter validation.
Variants§
Condition(ConditionError)
A cryptographic condition failed to verify.
InvalidState
Attempted to transition an Escrow in an invalid state.
Identity(IdentityError)
An identity could not be parsed or validated.
Asset(AssetError)
An asset failed parsing, validation, or formatting.
InvalidChainOp(String)
Attempted a chain-specific operation on the wrong network (e.g., getting Solana PDA on Ethereum).
Io(Error)
An I/O error occurred (e.g., reading or writing JSON files).
UnsupportedChain
The specified blockchain network is not supported.
Implementations§
Trait Implementations§
Source§impl Debug for EscrowError
impl Debug for EscrowError
Source§impl Display for EscrowError
impl Display for EscrowError
Source§impl Error for EscrowError
impl Error for EscrowError
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<AssetError> for EscrowError
impl From<AssetError> for EscrowError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<ConditionError> for EscrowError
impl From<ConditionError> for EscrowError
Source§fn from(source: ConditionError) -> Self
fn from(source: ConditionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for EscrowError
impl From<Error> for EscrowError
Source§impl From<IdentityError> for EscrowError
impl From<IdentityError> for EscrowError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EscrowError
impl !RefUnwindSafe for EscrowError
impl Send for EscrowError
impl Sync for EscrowError
impl Unpin for EscrowError
impl !UnwindSafe for EscrowError
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