Hierarchy

  • Error
    • ApiError

Constructors

  • Parameters

    • error: string
    • description: string

    Returns ApiError

Properties

cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Get the error name and description returned by the API

    Returns { description: string; error: string }

    The error name and description in an object

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void