An AggregateH5pError can be used to store error messages if the error that occurred first doesn't mean that the execution has to be stopped stopped right away.

Hierarchy (View Summary)

Constructors

Properties

cause?: unknown
clientErrorId?: string
debugMessage?: string
errorId: string
httpStatusCode: number = 500
message: string
name: string
replacements: { [key: string]: string | string[] } = {}
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void