pub enum ValidatorError {
CheckFailed {
check_name: String,
reason: String,
},
PolicyViolation {
policy: String,
message: String,
},
MissingEvidence {
expected: String,
},
Unavailable {
message: String,
},
Timeout {
elapsed: Duration,
deadline: Duration,
},
Internal {
message: String,
},
}Expand description
Error type for validation operations.
Implements CapabilityError for uniform error classification.
Variants§
CheckFailed
Validation check failed.
PolicyViolation
Policy violation detected.
MissingEvidence
Required evidence missing.
Validator service unavailable.
Timeout
Operation timed out.
Internal
Internal validator error.
Trait Implementations§
Source§impl CapabilityError for ValidatorError
impl CapabilityError for ValidatorError
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 ValidatorError
impl Clone for ValidatorError
Source§fn clone(&self) -> ValidatorError
fn clone(&self) -> ValidatorError
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 ValidatorError
impl Debug for ValidatorError
Source§impl Display for ValidatorError
impl Display for ValidatorError
Source§impl Error for ValidatorError
impl Error for ValidatorError
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 ValidatorError
impl RefUnwindSafe for ValidatorError
impl Send for ValidatorError
impl Sync for ValidatorError
impl Unpin for ValidatorError
impl UnsafeUnpin for ValidatorError
impl UnwindSafe for ValidatorError
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