AgentErrorDiagnostic
What a failure was classified from, described as plain data for logs,
telemetry and debug views. Published beside the error, in a snapshot's
errorDiagnostic, so AgentError stays a display projection. It is a description, never the thrown value: no
prototype, no functions, and nested causes described the same way.
import type { AgentErrorDiagnostic } from '@threadplane/angular/chat';Declaration
export interface AgentErrorDiagnostic {
readonly cause?: AgentErrorDiagnostic;
readonly code?: string | number;
readonly data?: PlainValue;
readonly message: string;
readonly name?: string;
readonly stack?: string;
readonly status?: number;
}Members
cause
The thrown value's own cause, described the same way.
readonly cause?: AgentErrorDiagnostic;code
A machine code the thrown value carried, such as ECONNRESET.
readonly code?: string | number;data
Any further plain data the thrown value carried, or the value itself when it was plain data.
readonly data?: PlainValue;message
readonly message: string;name
The thrown value's name, such as TypeError.
readonly name?: string;stack
readonly stack?: string;status
An HTTP status the thrown value carried.
readonly status?: number;