pub enum V2StoreError {
Classified(V2Error),
Unavailable(String),
ClaimProofConflict,
RateLimitExceeded,
ReleaseStateMismatch,
AcknowledgementNotFound,
ChallengeIssuanceConflict,
ChallengeIssuanceNotFound,
}Expand description
A Part B store, clock, or checkpoint failure.
Go stores return an error that is either classified (*V2Error), one
of a few exact sentinel values, or a plain (unclassified) error to which
the verifier assigns the class SPEC-v2 names for that step. This enum
carries exactly those three kinds.
Variants§
Classified(V2Error)
A failure whose class the store fixed deliberately; the verifier keeps
it (for example clock_regressed, claim_lease_lost).
An unclassified failure (Go: a plain error). The verifier assigns the
class Go assigns at that step (usually claim_store_unavailable).
ClaimProofConflict
Go ErrV2ClaimProofConflict: the challenge was already claimed by a
different proof (class claim_replay).
RateLimitExceeded
Go ErrV2RateLimitExceeded: a complete atomic batch had no capacity.
ReleaseStateMismatch
Go ErrV2ReleaseStateMismatch: a different release record exists.
AcknowledgementNotFound
Go ErrV2AcknowledgementNotFound.
ChallengeIssuanceConflict
Go ErrV2ChallengeIssuanceConflict: a record already exists for the
issuance key; the store never overwrites it.
ChallengeIssuanceNotFound
Go ErrV2ChallengeIssuanceNotFound.
Implementations§
Source§impl V2StoreError
impl V2StoreError
Sourcepub fn class(&self) -> Option<V2ErrorClass>
pub fn class(&self) -> Option<V2ErrorClass>
Go V2ErrorClassOf for this error: None means unclassified.
RateLimitExceeded reaches a caller only from
finalize_claim_proof_bundle_v2, which Go classifies as
claim_store_unavailable while the sentinel stays matchable; this
variant reports that class so the two agree.
Trait Implementations§
Source§impl Clone for V2StoreError
impl Clone for V2StoreError
Source§impl Debug for V2StoreError
impl Debug for V2StoreError
Source§impl Display for V2StoreError
impl Display for V2StoreError
impl Eq for V2StoreError
Source§impl Error for V2StoreError
impl Error for V2StoreError
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()