Enum sg_splits::ContractError
source · pub enum ContractError {
Std(StdError),
Admin(AdminError),
Unauthorized {},
NoFunds {},
NotEnoughFunds {
min: u64,
},
InvalidGroup {
addr: String,
},
InvalidWeight {
weight: u64,
},
InvalidMemberCount {
count: usize,
},
InvalidExecutor {
addr: String,
},
InvalidReplyID {},
ReplyOnSuccess {},
}Variants§
Std(StdError)
Admin(AdminError)
Fields
NoFunds
Fields
NotEnoughFunds
InvalidGroup
InvalidWeight
InvalidMemberCount
InvalidExecutor
InvalidReplyID
Fields
ReplyOnSuccess
Fields
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<AdminError> for ContractError
impl From<AdminError> for ContractError
source§fn from(source: AdminError) -> Self
fn from(source: AdminError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for ContractError
impl From<StdError> for ContractError
source§impl PartialEq<ContractError> for ContractError
impl PartialEq<ContractError> 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 ==.