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

  • get headers(): Headers
  • Returns Headers

  • get path(): string
  • Returns string

  • get status(): number
  • Returns number

  • get statusText(): string
  • Returns string

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

    Returns void

  • Parameters

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

    Returns string[]