Options
All
  • Public
  • Public/Protected
  • All
Menu

Errors from discord.bio API

Hierarchy

  • Error
    • DBioAPIError

Index

Constructors

  • new DBioAPIError(__namedParameters: { message: string; method: string; path: string; statusCode: number }): DBioAPIError
  • Parameters

    • __namedParameters: { message: string; method: string; path: string; statusCode: number }
      • message: string
      • method: string
      • path: string
      • statusCode: number

    Returns DBioAPIError

Properties

message: string
method: string

Request method

name: string
path: string

Request path

stack?: string
statusCode: number

HTTP Response code

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

Type declaration

stackTraceLimit: number

Methods

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc