Credits to Oceanic.js

Hierarchy

  • Error
    • guildedHTTPError

Constructors

  • Parameters

    • res: Response
    • resBody: unknown
    • method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
    • Optionalstack: string

    Returns guildedHTTPError

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: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Accessors

Methods

  • Returns {
        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
    • OptionalconstructorOpt: Function

    Returns void

  • Parameters

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

    Returns string[]