pub enum ContractError {
Show 13 variants
Std(StdError),
Threshold(ThresholdError),
InvalidGroup {
addr: String,
},
Unauthorized {},
NotOpen {},
Expired {},
NotExpired {},
WrongExpiration {},
AlreadyVoted {},
WrongExecuteStatus {},
WrongCloseStatus {},
Payment(PaymentError),
Deposit(DepositError),
}
Variants§
Std(StdError)
Threshold(ThresholdError)
InvalidGroup
NotOpen
Expired
NotExpired
WrongExpiration
AlreadyVoted
WrongExecuteStatus
WrongCloseStatus
Payment(PaymentError)
Deposit(DepositError)
Trait Implementations§
source§impl Debug for ContractError
impl Debug for ContractError
source§impl Display for ContractError
impl Display for ContractError
source§impl Error for ContractError
impl Error for ContractError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DepositError> for ContractError
impl From<DepositError> for ContractError
source§fn from(source: DepositError) -> Self
fn from(source: DepositError) -> Self
Converts to this type from the input type.
source§impl From<PaymentError> for ContractError
impl From<PaymentError> for ContractError
source§fn from(source: PaymentError) -> Self
fn from(source: PaymentError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for ContractError
impl From<StdError> for ContractError
source§impl From<ThresholdError> for ContractError
impl From<ThresholdError> for ContractError
source§fn from(source: ThresholdError) -> Self
fn from(source: ThresholdError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ContractError
impl PartialEq for ContractError
source§fn eq(&self, other: &ContractError) -> bool
fn eq(&self, other: &ContractError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContractError
Auto Trait Implementations§
impl Freeze for ContractError
impl RefUnwindSafe for ContractError
impl Send for ContractError
impl Sync for ContractError
impl Unpin for ContractError
impl UnwindSafe for ContractError
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