A plain, serializable representation of a thrown value.
readonly
name: string
The error's name (e.g. 'Error', 'HttpError'), or 'Error' for a non-Error value.
readonly
message: string
The error's message, or the stringified value for a non-Error value.
readonly
optional
stack: string
The error's stack, when present.
readonly
optional
cause: SerializedError
The serialized cause, when the error carries one.
readonly
optional
classifiers: Readonly<Record<string, string | number | boolean>>
Safe scalar driver fields useful for error classification.
readonly
optional
errors: readonly SerializedError[]
Serialized members of an AggregateError, when present.
readonly
optional
omittedErrorCount: number
Number of direct aggregate members omitted by the serialization budget.