Class APIError

An error that is thrown by the API.

Hierarchy

  • Error
    • APIError

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Properties

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number
cause?: unknown
name: string
message: string
stack?: string
code: ErrorCode
additionalData: any