Skip to navigation

Enum Worker SdkError

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub enum WorkerSdkError {
    InvalidInput(String),
    Callback(String),
    Transport(String),
    Downstream {
        source: Box<WorkerSdkError>,
        continuation_id: String,
    },
    Serialization(Error),
}

Error returned by worker SDK callbacks and runtime helpers.

Variants

InvalidInput(String)

InvalidInput(String)

Invalid host-provided input.

Callback(String)

Callback(String)

Worker callback failed.

Transport(String)

Transport(String)

Worker transport failed.

Downstream

Downstream

An unchanged downstream continuation failure, preserving its original display. Propagate this error to retain provenance; constructing a new error represents a distinct plugin failure. The host checks the invocation’s continuation ID.

Fields

source: Box<WorkerSdkError>

Original SDK error, with unchanged execution/reporting semantics.

continuation_id: String

Host-issued continuation that returned the failure.

Serialization(Error)

Serialization(Error)

JSON serialization failed.

Trait Implementations

impl Debug for WorkerSdkError

impl Debug for WorkerSdkError

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for WorkerSdkError

impl Display for WorkerSdkError

fmt

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

impl Error for WorkerSdkError

impl Error for WorkerSdkError

source

fn source(&self) -> Option<&(dyn Error + 'static)>

description

fn description(&self) -> &str

cause

fn cause(&self) -> Option<&dyn Error>

provide

fn provide<'a>(&'a self, request: &mut Request<'a>)

impl From< Error> for WorkerSdkError

impl From<Error> for WorkerSdkError

from

fn from(source: Error) -> Self