#[non_exhaustive]pub enum ErrorCode {
Show 32 variants
WorkflowFailed,
WorkflowNotFound,
WorkflowAlreadyExists,
WorkflowCanceled,
WorkflowTimeout,
WorkflowNonDeterministic,
WorkflowStateError,
WorkflowVersionMismatch,
WorkflowReplayError,
TaskFailed,
TaskNotFound,
TaskTimeout,
TaskCanceled,
TaskHeartbeatFailed,
TaskRetryLimitExceeded,
TaskInvalidInput,
ConnectionFailed,
RequestTimeout,
AuthenticationFailed,
AuthorizationFailed,
ServerError,
InvalidRequest,
InvalidConfiguration,
StartupFailed,
ShutdownError,
HandlerNotFound,
ResourceExhausted,
PollingError,
SerializationError,
NetworkError,
IoError,
Internal,
}Expand description
Machine-readable error code, shared by the Rust, TypeScript and Python SDKs.
The Display form (for example TASK_FAILED) is the same string in every SDK.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WorkflowFailed
Workflow execution failed
WorkflowNotFound
Workflow not found
WorkflowAlreadyExists
Workflow already exists
WorkflowCanceled
Workflow was canceled
WorkflowTimeout
Workflow timed out
WorkflowNonDeterministic
Non-deterministic workflow execution detected
WorkflowStateError
Workflow state error
WorkflowVersionMismatch
Workflow version mismatch
WorkflowReplayError
Workflow replay error
TaskFailed
Task execution failed
TaskNotFound
Task not found
TaskTimeout
Task timed out
TaskCanceled
Task was canceled
TaskHeartbeatFailed
Task heartbeat failed
TaskRetryLimitExceeded
Task retry limit exceeded
TaskInvalidInput
Invalid task input
ConnectionFailed
Connection to server failed
RequestTimeout
Request timed out
AuthenticationFailed
Authentication failed
AuthorizationFailed
Authorization failed
ServerError
Server returned an error
InvalidRequest
Invalid request
InvalidConfiguration
Invalid configuration
StartupFailed
Service startup failed
ShutdownError
Service shutdown error
HandlerNotFound
Handler not found
ResourceExhausted
Resource exhausted
PollingError
Polling error
SerializationError
Serialization/deserialization error
NetworkError
Network/transport error
IoError
I/O error
Internal
Internal/unknown error
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Forget for ErrorCode
impl Freeze for ErrorCode
impl Move for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request