pub enum HaimaError {
Show 23 variants
Wallet(String),
PaymentDenied(String),
SettlementFailed(String),
Facilitator(String),
InsufficientBalance {
needed: i64,
available: i64,
},
ExceedsPolicyCap {
amount: i64,
cap: i64,
},
UnsupportedChain(String),
UnsupportedScheme(String),
Protocol(String),
Serialization(Error),
Http(String),
Crypto(String),
InsufficientCredit {
reason: String,
},
PolicyNotFound(String),
PolicyNotActive {
policy_id: String,
status: String,
},
ClaimExceedsCoverage {
claimed: i64,
remaining: i64,
},
NotInsurable {
reason: String,
},
QuoteExpired {
quote_id: String,
},
QuoteNotFound(String),
ProductNotFound(String),
PoolReservesInsufficient {
needed: i64,
available: i64,
},
ProviderNotFound(String),
ClaimNotFound(String),
}Variants§
Wallet(String)
PaymentDenied(String)
SettlementFailed(String)
Facilitator(String)
InsufficientBalance
ExceedsPolicyCap
UnsupportedChain(String)
UnsupportedScheme(String)
Protocol(String)
Serialization(Error)
Http(String)
Crypto(String)
InsufficientCredit
PolicyNotFound(String)
PolicyNotActive
ClaimExceedsCoverage
NotInsurable
QuoteExpired
QuoteNotFound(String)
ProductNotFound(String)
PoolReservesInsufficient
ProviderNotFound(String)
ClaimNotFound(String)
Trait Implementations§
Source§impl Debug for HaimaError
impl Debug for HaimaError
Source§impl Display for HaimaError
impl Display for HaimaError
Source§impl Error for HaimaError
impl Error for HaimaError
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 HaimaError
impl !RefUnwindSafe for HaimaError
impl Send for HaimaError
impl Sync for HaimaError
impl Unpin for HaimaError
impl UnsafeUnpin for HaimaError
impl !UnwindSafe for HaimaError
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