Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an error that was caused by another error.

Hierarchy

  • Error
    • ErrorWithCause

Index

Constructors

Properties

cause: Error
message: string
name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Accessors

  • get rootCause(): Error
  • Root cause of the error. If there are multiple errors caused one by another, the root cause is the first error that occurred. In case there is no root cause.

    Returns Error

Methods

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

    Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void