Class BaseError<T>

Type Parameters

  • T

Hierarchy

Constructors

  • Type Parameters

    • T

    Parameters

    • message: string
    • code: string
    • data: T

    Returns BaseError<T>

Properties

caller: string
code: string
data: T
message: string
name: string
stackTraceLimit: number
cause?: unknown
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc