Class OsuApiV2WebRequestError<REQUEST_BODY>

An error that should be thrown if an osu!api v2 web request fails.

Type Parameters

  • REQUEST_BODY = string

Hierarchy-Diagram

UML class diagram of OsuApiV2WebRequestError
Legend
icon for a class in the UML class diagram class
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
underlined static property/method

Hierarchy

  • Error
    • OsuApiV2WebRequestError

Constructors

Properties

body?: string
headers?: Readonly<OsuApiV2WebRequestErrorHeaders>
message: string
name: string
stack?: string
statusCode: number
statusText: string
url: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc