Hierarchy

  • Error
    • JSPteroAPIError

Constructors

  • Parameters

    • rawData: Response
    • JSONData: pterodactylError
    • data: null | string | Record<string, unknown>
    • requestType: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"

    Returns JSPteroAPIError

Properties

ERRORS: string[]
HTML_STATUS: number
HTML_STATUS_TEXT: string
HTML_URL: string
REQUEST_BODY: string | Record<string, unknown>
REQUEST_TYPE: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"
cause?: unknown
message: string
name: string
stack?: 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