SerializedError
Plain-object representation of an Error or thrown value. Includes structured details, avoiding circular references.
Indexable
Section titled “Indexable”[key
: string
]: unknown
Any additional enumerable properties from the original Error. Allows capturing custom fields.
Properties
Section titled “Properties”cause?
Section titled “cause?”
optional
cause:unknown
Serialized cause of this error (if cause
option enabled).
May be another SerializedError or any raw value.
errors?
Section titled “errors?”
optional
errors:SerializedError
[]
For AggregateError: array of child errors (if aggregated
option enabled).
message
Section titled “message”message:
string
The main error message.
stack?
Section titled “stack?”
optional
stack:string
Optional stack trace string (if stack
option enabled).
type:
string
The error’s constructor name or type.