Represents an error that was caused by another error.

Hierarchy

  • Error
    • ErrorWithCause

Constructors

Properties

cause: Error

Original error, causing this 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

    The root cause.

    Returns Error

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

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