Struct temporal_sdk_core::protos::coresdk::common::UserCodeFailure[][src]

pub struct UserCodeFailure {
    pub message: String,
    pub type: String,
    pub source: String,
    pub stack_trace: String,
    pub non_retryable: bool,
    pub cause: Option<Box<UserCodeFailure>>,
}

Represents a failure in user code, workflow or activity, which could’ve been triggered by an exception or similar error mechanism like the error half of a Result type.

This eventually needs to be converted into an upstream Failure which needs to handle a lot more cases that the lang sdk does not care about. By default any lang sdk failure is an upstream ApplicationFailureInfo.

Fields

message: String

Human-specified or otherwise most-human-readable representation of the error.

type: String

A type identifier for the error, if the error is well-typed.

source: String

If known, the location the error was issued at.

stack_trace: String

If collected, a stack trace for the error.

non_retryable: bool

Explicitly thrown user errors are able to indicate that retries should be prevented

cause: Option<Box<UserCodeFailure>>

Trait Implementations

impl Clone for UserCodeFailure[src]

impl Debug for UserCodeFailure[src]

impl Default for UserCodeFailure[src]

impl From<Failure> for UserCodeFailure[src]

impl From<UserCodeFailure> for Failure[src]

impl Message for UserCodeFailure[src]

impl PartialEq<UserCodeFailure> for UserCodeFailure[src]

impl StructuralPartialEq for UserCodeFailure[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]