Class DeezerHTTPError

Base class for HTTP-related errors. Wraps HTTP errors returned by the Deezer API.

Hierarchy (View Summary)

Constructors

Properties

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

Optional override for formatting stack traces

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

stackTraceLimit: number
name: string
message: string
stack?: string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Internal

    Creates the appropriate HTTP error based on the response status code.

    Parameters

    • response: Response

      The HTTP response object

    Returns DeezerHTTPError

    A specific HTTP error instance