pub enum ContractError {
Show 29 variants
Std(StdError),
ParseReplyError(ParseReplyError),
HookError(HookError),
Unauthorized {},
ThresholdError(ThresholdError),
VotingError(VotingError),
InvalidExpiration {},
NoSuchProposal {
id: u64,
},
ProposalTooLarge {
size: u64,
max: u64,
},
Expired {
id: u64,
},
NotRegistered {},
NoSuchVote {
id: u64,
voter: String,
},
AlreadyVoted {},
AlreadyCast {},
NotPassed {},
Tie {},
NotExpired {},
WrongCloseStatus {},
InactiveDao {},
WrongNumberOfChoices {},
NoneOption {},
NoVoteWeights {},
InvalidVote {},
MustHaveVotingPower {},
InvalidProposer {},
Tag(TagError),
PendingProposals {},
InvalidHookIndex {
idx: u64,
},
InvalidReplyID {
id: u64,
},
}Variants§
Std(StdError)
ParseReplyError(ParseReplyError)
HookError(HookError)
Fields
ThresholdError(ThresholdError)
VotingError(VotingError)
InvalidExpiration
Fields
NoSuchProposal
ProposalTooLarge
Expired
NotRegistered
Fields
NoSuchVote
AlreadyVoted
Fields
AlreadyCast
Fields
NotPassed
Fields
Tie
Fields
NotExpired
Fields
WrongCloseStatus
Fields
InactiveDao
Fields
WrongNumberOfChoices
Fields
NoneOption
Fields
NoVoteWeights
Fields
InvalidVote
Fields
MustHaveVotingPower
Fields
InvalidProposer
Fields
Tag(TagError)
PendingProposals
Fields
InvalidHookIndex
InvalidReplyID
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<HookError> for ContractError
impl From<HookError> for ContractError
source§impl From<ParseReplyError> for ContractError
impl From<ParseReplyError> for ContractError
source§fn from(source: ParseReplyError) -> Self
fn from(source: ParseReplyError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for ContractError
impl From<StdError> for ContractError
source§impl From<TagError> for ContractError
impl From<TagError> 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 From<VotingError> for ContractError
impl From<VotingError> for ContractError
source§fn from(source: VotingError) -> Self
fn from(source: VotingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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