Credits to Ocanic.js

Hierarchy

  • Error
    • GuildedHTTPError

Constructors

Properties

cause?: unknown
message: string
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
name: string = "GuildedHTTPError"
resBody: null | Record<string, unknown>
response: Response
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

Methods

  • Returns {
        message: string;
        method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
        name: string;
        resBody: null | Record<string, unknown>;
        stack: string;
    }

    • message: string
    • method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
    • name: string
    • resBody: null | Record<string, unknown>
    • stack: string
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • errors: Record<string, unknown>
    • keyPrefix: string = ""

    Returns string[]