#[non_exhaustive]pub struct WireError { /* private fields */ }Expand description
The failure fields of a wire ErrorObject, as a named record.
Carries the four wire error fields: error_type, error_message,
error_data, and stack_trace. Reachable from a failed operation via
OperationError::wire, and from a replayed failure’s synthetic
source via ReplayedFailure::wire.
Implementations§
Source§impl WireError
impl WireError
Sourcepub fn error_type(&self) -> Option<&str>
pub fn error_type(&self) -> Option<&str>
The wire ErrorType: the name of the error type that failed the
operation, as recorded in the execution history.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The wire ErrorMessage: the human-readable message.
A failure that propagates another operation’s failure records that
operation’s message. Any other failure records its error’s chain,
flattened into one line. Neither includes the name of a
TypedError, which the record carries as its type: a failure
with TypedError::with_type("PaymentError", "declined") records the
message declined.
Sourcepub fn error_data(&self) -> Option<&str>
pub fn error_data(&self) -> Option<&str>
The wire ErrorData: an opaque payload attached to the failure.
The SDK writes this field and passes it through boundaries, and
never dispatches on it: the wire error fields can be supplied
by an external caller (via SendDurableExecutionCallbackFailure),
so typed reconstruction from an attacker-influenced payload is
decode surface the SDK refuses to have. Interpret it yourself if
you know its shape. The one record the SDK decodes is its own
select_ok AllFailed aggregate, whose error_data is
SDK-authored (never pass-through) and holds the losers’ recorded
failure fields; combinator replay decodes it defensively and only
stores and re-exposes the decoded strings, never branching on them.
Sourcepub fn stack_trace(&self) -> &[String]
pub fn stack_trace(&self) -> &[String]
The wire StackTrace frames, stored and exposed verbatim.
The SDK never captures frames. This field exposes the frames a
recorded record already carries: an external callback failure, a
remote invoke, or a replayed record. A failure the SDK records
live carries frames only when an error in its source chain
already carried them. A Rust std::backtrace::Backtrace cannot
be reconstructed from recorded frames, so these are
store-and-expose only.
Trait Implementations§
impl Eq for WireError
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Forget for WireError
impl Freeze for WireError
impl Move for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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> 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§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more