#[non_exhaustive]pub enum ApprovalError {
Show 20 variants
UnknownAction(String),
Invalid(&'static str),
Duplicate(String),
NotFound(String),
TooManyOpen(usize),
AuditRequired,
InvalidState {
id: String,
state: ApprovalState,
},
NotApproved(String),
AlreadyClaimed(String),
StaleClaim(String),
Expired(String),
StaleRevision {
expected: u64,
found: u64,
},
Conflict(String),
Unverified(String),
ScopeDenied,
NotAnApprover,
ReplayedNonce,
NotRequester,
AuditFailed(String),
Store(StoreError),
}Expand description
Why a workflow call was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownAction(String)
The action is not in the profile.
Invalid(&'static str)
A field failed validation.
Duplicate(String)
The request id exists.
NotFound(String)
TooManyOpen(usize)
AuditRequired
The action requires audit before effect and no sink is configured.
InvalidState
The call is not allowed from the request’s current state.
NotApproved(String)
claim on a request that is still Pending.
AlreadyClaimed(String)
claim on a request that is already Claimed (or settled): the one claim is spent.
StaleClaim(String)
A token that is not the one on record.
Expired(String)
The request expired (and is now Expired).
StaleRevision
The decision named a revision other than the current one.
Conflict(String)
Another caller changed the request first.
Unverified(String)
The verifier refused the proof.
ScopeDenied
The principal’s accounts do not cover the request’s account.
NotAnApprover
The request names approvers and the principal is not one.
ReplayedNonce
The proof’s nonce was already used.
NotRequester
Only the requester may cancel.
AuditFailed(String)
A required audit row could not be appended; see the operation for what that left.
Store(StoreError)
Trait Implementations§
Source§impl Debug for ApprovalError
impl Debug for ApprovalError
Source§impl Display for ApprovalError
impl Display for ApprovalError
Source§impl Error for ApprovalError
impl Error for ApprovalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()