pub enum GovernanceError {
Show 27 variants
InvalidTransition {
from: String,
to: String,
},
DecisionImmutable(Hash256),
DecisionNotFound(Hash256),
AuthorityChainBroken {
reason: String,
},
DelegationExpired(Hash256),
DelegationRevoked(Hash256),
DelegationNotFound(Hash256),
SubDelegationNotPermitted(Hash256),
ChainTooDeep(usize),
HumanGateViolation {
class: DecisionClass,
signer: Did,
},
AiCeilingExceeded {
action: String,
},
ConstitutionalViolation {
constraint_id: String,
reason: String,
},
ConstitutionVersionMismatch {
required: SemVer,
actual: SemVer,
},
ConstitutionNotFound,
QuorumNotMet {
required: u32,
present: u32,
},
ConflictDisclosureRequired(Did),
ChallengeNotFound(Hash256),
AlreadyContested(Hash256),
RatificationRequired,
EmergencyFrequencyExceeded {
count: u32,
},
AuditChainBroken {
sequence: u64,
expected: Hash256,
actual: Hash256,
},
DeliberationNotOpen,
DuplicateVote(String),
ActionNotFound(String),
Serialization(String),
SignatureVerificationFailed,
InvalidGovernanceMetadata {
field: String,
reason: String,
},
}Expand description
Canonical error type for all governance operations, covering TNC compliance violations.
Variants§
InvalidTransition
DecisionImmutable(Hash256)
DecisionNotFound(Hash256)
AuthorityChainBroken
DelegationExpired(Hash256)
DelegationRevoked(Hash256)
DelegationNotFound(Hash256)
SubDelegationNotPermitted(Hash256)
ChainTooDeep(usize)
HumanGateViolation
AiCeilingExceeded
ConstitutionalViolation
ConstitutionVersionMismatch
ConstitutionNotFound
QuorumNotMet
ConflictDisclosureRequired(Did)
ChallengeNotFound(Hash256)
AlreadyContested(Hash256)
RatificationRequired
EmergencyFrequencyExceeded
AuditChainBroken
DeliberationNotOpen
DuplicateVote(String)
ActionNotFound(String)
Serialization(String)
SignatureVerificationFailed
InvalidGovernanceMetadata
Trait Implementations§
Source§impl Debug for GovernanceError
impl Debug for GovernanceError
Source§impl Display for GovernanceError
impl Display for GovernanceError
Source§impl Error for GovernanceError
impl Error for GovernanceError
1.30.0 · 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 GovernanceError
impl RefUnwindSafe for GovernanceError
impl Send for GovernanceError
impl Sync for GovernanceError
impl Unpin for GovernanceError
impl UnsafeUnpin for GovernanceError
impl UnwindSafe for GovernanceError
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