Skip to main content

GraphStoreError

Enum GraphStoreError 

Source
#[non_exhaustive]
pub enum GraphStoreError {
Show 17 variants ScopeUnservable { reason: String, }, Unsupported { what: &'static str, }, Validation { items: Vec<ItemError>, }, Conflict { reason: String, }, Serialization, StaleGeneration { recorded: i64, offered: i64, }, IdempotencyMismatch, IdempotencyExpired, NotFound, LimitExceeded { what: String, }, SourceNamespaceForbidden { namespace: String, }, InvalidQuery { what: String, }, Corrupt { reason: String, }, Unavailable { reason: String, }, Deadline, Cancelled, Internal(String),
}
Expand description

Store-side failure vocabulary. The gear normalizes these into canonical errors before they cross the public boundary; no vendor text survives.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ScopeUnservable

Request-level decline: this implementation cannot serve the compiled scope. Routed by the gateway, never surfaced to the caller directly.

Fields

§reason: String
§

Unsupported

The capability is declared absent for this store.

Fields

§what: &'static str
§

Validation

Per-item validation failures; the batch committed nothing.

Fields

§

Conflict

Same-key different-type ingest, expected-version mismatch, or an equal-generation replacement with different content.

Fields

§reason: String
§

Serialization

Serialization failure under concurrent ingest; retry unchanged.

§

StaleGeneration

Older source generation for a scope; drop the stale run.

Fields

§recorded: i64
§offered: i64
§

IdempotencyMismatch

Idempotency key reused with a different request.

§

IdempotencyExpired

Receipt expired (or from a previous source epoch); reconcile first.

§

NotFound

Unauthorized or unknown resource — indistinguishable by contract.

§

LimitExceeded

A documented hard bound was exceeded.

Fields

§what: String
§

SourceNamespaceForbidden

A write under a source namespace bound to another producer principal.

Deliberately not NotFound: everywhere else a denial is indistinguishable from absence (anti-enumeration), but here the caller named a namespace whose owner is a fact about the tenant, not about them, and telling them it does not exist would send them to create it. DESIGN § Error Model maps this to permission_denied / SOURCE_NAMESPACE_FORBIDDEN, “never retry; request ownership transfer”.

Fields

§namespace: String
§

InvalidQuery

The query itself is malformed — an unknown filter field, an unparseable cursor, an ordering the store cannot serve. Distinct from LimitExceeded: nothing here is about a bound, and telling a caller “reduce the value” when they named a field that does not exist sends them the wrong way.

Fields

§what: String
§

Corrupt

Durable corruption detected; operator action.

Fields

§reason: String
§

Unavailable

Fields

§reason: String
§

Deadline

§

Cancelled

§

Internal(String)

Unexpected failure; details stay in access-controlled logs.

Trait Implementations§

Source§

impl Debug for GraphStoreError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for GraphStoreError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for GraphStoreError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more