Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Error
    • default

Index

Constructors

constructor

  • new default(message?: string, code?: number, details?: Record<string, any>): default
  • Parameters

    • Optional message: string
    • Optional code: number
    • details: Record<string, any> = ...

    Returns default

Properties

Optional code

code: undefined | number

details

details: Record<string, any> = ...

message

message: string

name

name: string

Optional stack

stack: undefined | string

Optional Static prepareStackTrace

prepareStackTrace: undefined | ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc