pub enum WireErrorCode {
Show 15 variants
NotFound,
NamespaceDenied,
SequenceConflict,
UnknownQuery,
QueryTimeout,
NotRunning,
Lagged,
InvalidInput,
Backend,
QueryFailed,
DeployDenied,
GrantDenied,
VersionPinned,
NotOwner,
InvalidState,
}Expand description
Stable, closed, client-branchable wire error codes.
The JSON representation is the snake_case code returned by
WireErrorCode::as_str — the documented stable contract every SDK wire
map branches on. rename_all = "snake_case" keeps Serialize/Deserialize
byte-identical to as_str() for every variant; the
json_codes_match_as_str_and_round_trip pin test enforces this.
Variants§
NotFound
The requested workflow, run, activity, timer, or history item was not found.
NamespaceDenied
The caller is not authorized to operate in the requested namespace.
SequenceConflict
A durable write lost an optimistic sequence-position race.
UnknownQuery
The requested workflow query name is not registered.
QueryTimeout
A workflow query exceeded its configured timeout/window.
NotRunning
The target workflow is terminal or otherwise not running.
Lagged
A bounded stream consumer fell behind and was disconnected.
InvalidInput
A request body, identifier, or envelope is malformed or semantically invalid.
Backend
Backend storage, serialization, runtime, or other internal failure.
QueryFailed
The workflow’s query handler ran and reported an application-level failure.
DeployDenied
The caller is not authorized to use the operator deploy surface.
GrantDenied
The caller does not hold the grant a surface requires. The refusal
names the word and the knob that carries it. Distinct from
WireErrorCode::DeployDenied, which names the deploy surface
specifically: a grant refusal that spelled deploy_denied would be
telling the caller to go looking at a surface it never touched.
VersionPinned
A deploy unload/route was refused because the version is route-active or pinned by live state.
NotOwner
The targeted shard is owned by a different cluster node; the request was fenced. A retryable routing signal: the caller (or the request-routing edge) should re-resolve the shard owner and retry or forward.
InvalidState
A precondition on the target’s current state was not met (e.g. a reopen
of a run that is not a reopenable terminal). Distinct from NotFound
(absent) and Backend (internal failure): the target exists but is in
the wrong state. Maps to gRPC FailedPrecondition / HTTP 409 Conflict.
Implementations§
Trait Implementations§
Source§impl Clone for WireErrorCode
impl Clone for WireErrorCode
Source§fn clone(&self) -> WireErrorCode
fn clone(&self) -> WireErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more