Struct Error Info

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct ErrorInfo {
    pub stage: ErrorStage,
    pub code: String,
    pub message: String,
    pub retryable: bool,
    pub metadata: BTreeMap<String, Value>,
}

Normalized error metadata.

Fields

stage: ErrorStage

NeMo Fabric lifecycle stage where the failure surfaced.

code: String

Stable error code.

message: String

Human-readable error message.

retryable: bool

Whether NeMo Fabric considers this failure safe for a consumer-level retry.

metadata: BTreeMap<String, Value>

Adapter or runtime metadata useful for diagnostics.

Trait Implementations

impl Clone for ErrorInfo

impl Clone for ErrorInfo

clone

fn clone(&self) -> ErrorInfo

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for ErrorInfo

impl Debug for ErrorInfo

fmt

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

impl<'de> Deserialize<'de> for ErrorInfo

impl<'de> Deserialize<'de> for ErrorInfo

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl JsonSchema for ErrorInfo

impl JsonSchema for ErrorInfo

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for ErrorInfo

impl PartialEq for ErrorInfo

eq

fn eq(&self, other: &ErrorInfo) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for ErrorInfo

impl Serialize for ErrorInfo

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for ErrorInfo

impl StructuralPartialEq for ErrorInfo