pub enum WireErrorCode {
NotFound,
NamespaceDenied,
SequenceConflict,
UnknownQuery,
QueryTimeout,
NotRunning,
Lagged,
InvalidInput,
Backend,
QueryFailed,
DeployDenied,
VersionPinned,
}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.
VersionPinned
A deploy unload/route was refused because the version is route-active or pinned by live state.
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 moreimpl Copy for WireErrorCode
Source§impl Debug for WireErrorCode
impl Debug for WireErrorCode
Source§impl<'de> Deserialize<'de> for WireErrorCode
impl<'de> Deserialize<'de> for WireErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for WireErrorCode
impl Display for WireErrorCode
impl Eq for WireErrorCode
Source§impl From<WireErrorCode> for ProtoWireErrorCode
impl From<WireErrorCode> for ProtoWireErrorCode
Source§fn from(value: WireErrorCode) -> Self
fn from(value: WireErrorCode) -> Self
Source§impl Hash for WireErrorCode
impl Hash for WireErrorCode
Source§impl PartialEq for WireErrorCode
impl PartialEq for WireErrorCode
Source§fn eq(&self, other: &WireErrorCode) -> bool
fn eq(&self, other: &WireErrorCode) -> bool
self and other values to be equal, and is used by ==.