Base custom error class that extends the built-in Error class.

Hierarchy

Constructors

  • Creates an instance of the custom error.

    Parameters

    • text: string

      The error message text.

    Returns Base

Properties

cause?: unknown
custom: boolean = true

Indicates whether the error is custom.

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc