AboutSupportDeveloper GuideVersion 2.0.0

Base class for custom errors throw by the API.

Hierarchy (view full)

Constructors

  • Parameters

    • message: string = 'An unexpected error has occurred'
    • Optional data: unknown

    Returns ApiError

Properties

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

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc