pub enum ContractError {
Show 13 variants
Std(StdError),
Unauthorized {},
ExecuteLocked {},
InvalidFee {},
ExistingFee {},
ExistingShare {},
FeeNotFound {},
InvalidTotalFee {},
NoPaymentsFound {},
DivideByZeroError(DivideByZeroError),
UtilError(UtilError),
FundsError(FundsError),
SharedError(SharedError),
}Variants§
Std(StdError)
Fields
ExecuteLocked
Fields
InvalidFee
Fields
ExistingFee
Fields
FeeNotFound
Fields
InvalidTotalFee
Fields
NoPaymentsFound
Fields
DivideByZeroError(DivideByZeroError)
UtilError(UtilError)
FundsError(FundsError)
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<DivideByZeroError> for ContractError
impl From<DivideByZeroError> for ContractError
source§fn from(source: DivideByZeroError) -> Self
fn from(source: DivideByZeroError) -> Self
Converts to this type from the input type.
source§impl From<FundsError> for ContractError
impl From<FundsError> for ContractError
source§fn from(source: FundsError) -> Self
fn from(source: FundsError) -> Self
Converts to this type from the input type.
source§fn from(source: SharedError) -> Self
fn from(source: SharedError) -> Self
Converts to this type from the input type.