pub enum PromoterError {
ReportMismatch {
expected: String,
actual: String,
},
Unauthorized {
actor: String,
reason: String,
},
AlreadyPromoted {
proposal_id: String,
fact_id: String,
},
Unavailable {
message: String,
},
Timeout {
elapsed: Duration,
deadline: Duration,
},
StorageError {
message: String,
},
Internal {
message: String,
},
}Expand description
Error type for promotion operations.
Implements CapabilityError for uniform error classification.
Variants§
ReportMismatch
Validation report doesn’t match proposal.
Actor not authorized to promote.
Fields
Actor that attempted promotion.
Reason for denial.
AlreadyPromoted
Proposal already promoted.
Promoter service unavailable.
Timeout
Operation timed out.
StorageError
Storage error during fact creation.
Internal
Internal promoter error.
Trait Implementations§
Source§impl CapabilityError for PromoterError
impl CapabilityError for PromoterError
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Returns the category of this error for generic handling. Read more
Source§fn is_transient(&self) -> bool
fn is_transient(&self) -> bool
Returns
true if the underlying condition may clear without changing the request. Read moreSource§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns
true if retrying the operation makes sense given typical idempotency. Read moreSource§impl Clone for PromoterError
impl Clone for PromoterError
Source§fn clone(&self) -> PromoterError
fn clone(&self) -> PromoterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromoterError
impl Debug for PromoterError
Source§impl Display for PromoterError
impl Display for PromoterError
Source§impl Error for PromoterError
impl Error for PromoterError
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 PromoterError
impl RefUnwindSafe for PromoterError
impl Send for PromoterError
impl Sync for PromoterError
impl Unpin for PromoterError
impl UnsafeUnpin for PromoterError
impl UnwindSafe for PromoterError
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