pub enum SdkError {
Service {
service: ServiceError,
},
FlowAlreadyStarted {
service: ServiceError,
},
FlowNotFound {
service: ServiceError,
},
FlowNotActive {
service: ServiceError,
},
WorkerInvocation {
service: ServiceError,
worker: Box<WorkerError>,
},
RpcLockConflict {
service: ServiceError,
},
LongPollTimeout {
service: ServiceError,
},
FlowDefinition {
message: String,
},
InvalidArgument {
message: String,
},
ValueMapping {
message: String,
},
InvalidStepResult {
flow_type: String,
step_type: String,
detail: String,
},
}Expand description
Reports service, definition, value, handler, and Flow-completion failures.
Match specific variants when recovery differs. Self::service_error extracts common gRPC
metadata from every service-backed variant.
Variants§
Service
A general Dex service or transport call failed.
Fields
service: ServiceErrorStructured service failure.
FlowAlreadyStarted
Starting a Flow conflicted with an existing Flow ID.
Fields
service: ServiceErrorStructured start-operation failure.
FlowNotFound
An operation requiring an existing Flow targeted an unknown ID.
Fields
service: ServiceErrorStructured lookup failure.
FlowNotActive
An operation requiring an active Flow targeted a terminal or unknown ID.
Fields
service: ServiceErrorStructured active-Flow failure.
WorkerInvocation
A Worker Step or RPC handler failed.
Fields
service: ServiceErrorOuter Dex service failure.
worker: Box<WorkerError>Original Worker-side failure metadata.
RpcLockConflict
A locking RPC could not acquire all requested Attribute locks.
Fields
service: ServiceErrorStructured aborted-operation failure.
LongPollTimeout
A long-poll timeout elapsed without indicating a Flow failure.
Fields
service: ServiceErrorStructured timeout failure.
FlowDefinition
A registered Flow, Step, RPC, or persistence definition is invalid.
InvalidArgument
An SDK method received an invalid argument.
ValueMapping
An application value could not be serialized or decoded.
InvalidStepResult
A Step returned a value that violates its handler contract.
Implementations§
Source§impl SdkError
impl SdkError
Sourcepub fn service_error(&self) -> Option<&ServiceError>
pub fn service_error(&self) -> Option<&ServiceError>
Returns shared service metadata for service-backed variants.
Local definition, argument, mapping, and invalid-result errors return None.
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SdkError
impl !UnwindSafe for SdkError
impl Freeze for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl UnsafeUnpin for SdkError
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
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