pub enum DurableTaskError {
GrpcError(Box<Status>),
OrchestrationFailed {
instance_id: String,
message: String,
failure_details: Option<FailureDetails>,
},
InstanceNotFound {
instance_id: String,
},
TaskFailed {
message: String,
failure_details: Option<FailureDetails>,
},
NonDeterminism {
message: String,
},
OrchestrationState {
message: String,
},
Timeout,
Serialization(Error),
InvalidAddress(String),
ConnectionFailed(String),
Internal(String),
Other(String),
}Expand description
Error types for the Durable Task SDK.
Variants§
GrpcError(Box<Status>)
OrchestrationFailed
InstanceNotFound
TaskFailed
NonDeterminism
OrchestrationState
Timeout
Serialization(Error)
InvalidAddress(String)
Invalid endpoint, URI, or address-parsing failure.
ConnectionFailed(String)
Failure establishing or maintaining a connection to the sidecar.
Internal(String)
Internal SDK error (channel closed, semaphore poisoned, invariant violation, etc.).
Other(String)
Trait Implementations§
Source§impl Debug for DurableTaskError
impl Debug for DurableTaskError
Source§impl Display for DurableTaskError
impl Display for DurableTaskError
Source§impl Error for DurableTaskError
impl Error for DurableTaskError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for DurableTaskError
impl From<Error> for DurableTaskError
Auto Trait Implementations§
impl !RefUnwindSafe for DurableTaskError
impl !UnwindSafe for DurableTaskError
impl Freeze for DurableTaskError
impl Send for DurableTaskError
impl Sync for DurableTaskError
impl Unpin for DurableTaskError
impl UnsafeUnpin for DurableTaskError
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request