Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DiscordHTTPError

Hierarchy

  • Error
    • DiscordHTTPError

Index

Constructors

constructor

  • Parameters

    • req: ClientRequest
    • res: IncomingMessage
    • response: HTTPResponse
    • stack: string

    Returns DiscordHTTPError

Properties

code

code: number

message

message: string

name

name: "DiscordHTTPError"

Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

req

req: ClientRequest

res

res: IncomingMessage

response

response: HTTPResponse

Optional stack

stack: undefined | string

stackTraceLimit

stackTraceLimit: number

Methods

captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

flattenErrors

  • flattenErrors(errors: HTTPResponse, keyPrefix?: string): string[]
  • Parameters

    Returns string[]

Generated using TypeDoc