Credits to Oceanic.js

Hierarchy

  • Error
    • GuildedRESTError

Constructors

  • Parameters

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

    Returns GuildedRESTError

Properties

cause?: unknown
code: null | number
message: string
method:
    | "GET"
    | "POST"
    | "PUT"
    | "PATCH"
    | "DELETE"
name: string = "GuildedRESTError"
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[]