This is a pretty "rough" and "unprecise" error that indicates to the user of the module that the operation failed, but it might succeed if the user retries it. It is intended to be raised in situations where the user of the module cannot do that much even if they got more precise information, for example server errors. However, the error code should supply relevant information for debugging.

Hierarchy (View Summary)

Constructors

Properties

cause?: unknown
errorCode: string
message: string
name: 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