Options
All
  • Public
  • Public/Protected
  • All
Menu
internal

Hierarchy

  • Error
    • VoucherifyError

Index

Constructors

constructor

  • new VoucherifyError(statusCode: number, body?: unknown, axiosError?: AxiosError<unknown, any>): VoucherifyError
  • Parameters

    • statusCode: number
    • Optional body: unknown
    • Optional axiosError: AxiosError<unknown, any>

    Returns VoucherifyError

Properties

Optional cause

cause: AxiosError<unknown, any>

code

code: number

Optional details

details: string

Optional error

error: { message: string }

Type declaration

  • message: string

key

key: string

message

message: string

name

name: string

Optional related_object_ids

related_object_ids: string[]

Optional related_object_total

related_object_total: number

Optional related_object_type

related_object_type: string

Optional request_id

request_id: string

Optional resource_id

resource_id: string

Optional resource_type

resource_type: string

Optional stack

stack: string

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static Optional prepareStackTrace

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any