Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NestedException

Hierarchy

  • Error
    • NestedException

Index

Constructors

constructor

  • Parameters

    • err: Error
    • code: string

    Returns NestedException

Properties

Private _code

_code: any

Private _error

_error: any

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

see

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

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Accessors

code

  • get code(): string
  • Returns string

error

  • get error(): Error
  • Returns Error

message

  • get message(): string
  • Returns string

name

  • get name(): string
  • Returns string

stack

  • get stack(): string
  • Returns string

Methods

toString

  • toString(): string
  • Returns string

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