Enum ApplicationErrorCode
pub enum ApplicationErrorCode {
Show 27 variants
InvalidRequest,
InputInvalid,
AuthorizationDenied,
ContractMismatch,
QueryInvalid,
QueryUnavailable,
ModuleUnavailable,
CursorInvalid,
ResponseTooLarge,
StorageUnavailable,
OutcomeUnknown,
OperationCancelled,
DeadlineExceeded,
InternalDefect,
IdempotencyKeyReuse,
CommandExecutionFailed,
CapabilityRevoked,
ProtocolInvalid,
HistoryIncarnationMismatch,
HistoryPruned,
Overloaded,
ProjectionDiverged,
SnapshotRetired,
FreshnessUnsatisfied,
ProjectedSourceRequired,
FollowerMode,
PrimaryFenced,
}Expand description
Closed stable code registry for application-semantic failures.
Variants§
InvalidRequest
Public message bytes failed structural validation.
InputInvalid
A typed application input failed validation.
AuthorizationDenied
Current policy denied the operation.
ContractMismatch
Contract identity is absent, stale, or does not match.
QueryInvalid
RiffQL could not be parsed, resolved, typed, or planned.
A checked query cannot currently be loaded or executed.
The requested named-query module is absent or stale.
CursorInvalid
A continuation cursor is invalid or stale.
ResponseTooLarge
One complete authorized result exceeds a public bound.
Authoritative storage is temporarily unavailable.
OutcomeUnknown
A durable mutation may have completed.
OperationCancelled
The request was cancelled at a safe point.
DeadlineExceeded
The request deadline elapsed.
InternalDefect
A redacted internal defect occurred.
IdempotencyKeyReuse
An idempotency identity was reused with different input.
CommandExecutionFailed
Deterministic command execution failed.
CapabilityRevoked
A formerly valid capability is revoked.
ProtocolInvalid
A public peer violated the application protocol.
HistoryIncarnationMismatch
Observed history predates a database restore.
HistoryPruned
Requested history was retired by retention prune.
Overloaded
The service is over capacity and rejected admission.
ProjectionDiverged
Exact result-set providers cannot prove one common epoch.
SnapshotRetired
The exact snapshot bound to the request is no longer retained.
FreshnessUnsatisfied
No servable exact snapshot satisfies the requested freshness floor.
ProjectedSourceRequired
A retained nearest plan predates the required compiler-owned source declaration.
FollowerMode
This node is a follower and cannot execute a write operation.
PrimaryFenced
Durable source fencing permanently refuses new command admission.
Implementations§
§impl ApplicationErrorCode
impl ApplicationErrorCode
pub const fn from_public_kind(kind: PublicErrorKind) -> ApplicationErrorCode
pub const fn from_public_kind(kind: PublicErrorKind) -> ApplicationErrorCode
Maps the compatible kernel classification into the application registry.
pub const fn safe_message(self) -> &'static str
pub const fn safe_message(self) -> &'static str
Returns the one registry-owned public message for this code.
pub const fn category(self) -> ApplicationErrorCategory
pub const fn category(self) -> ApplicationErrorCategory
Returns the closed category.
pub const fn recovery_action(self) -> ApplicationRecoveryAction
pub const fn recovery_action(self) -> ApplicationRecoveryAction
Returns deterministic recovery guidance.
pub const fn fixes(self) -> &'static [ApplicationFixCode]
pub const fn fixes(self) -> &'static [ApplicationFixCode]
Returns the exact deterministic remediation set.
Trait Implementations§
§impl Clone for ApplicationErrorCode
impl Clone for ApplicationErrorCode
§fn clone(&self) -> ApplicationErrorCode
fn clone(&self) -> ApplicationErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ApplicationErrorCode
§impl Debug for ApplicationErrorCode
impl Debug for ApplicationErrorCode
impl Eq for ApplicationErrorCode
§impl Hash for ApplicationErrorCode
impl Hash for ApplicationErrorCode
§impl PartialEq for ApplicationErrorCode
impl PartialEq for ApplicationErrorCode
§fn eq(&self, other: &ApplicationErrorCode) -> bool
fn eq(&self, other: &ApplicationErrorCode) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplicationErrorCode
Auto Trait Implementations§
impl Freeze for ApplicationErrorCode
impl RefUnwindSafe for ApplicationErrorCode
impl Send for ApplicationErrorCode
impl Sync for ApplicationErrorCode
impl Unpin for ApplicationErrorCode
impl UnsafeUnpin for ApplicationErrorCode
impl UnwindSafe for ApplicationErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].