Credits to Ocanic.js

Hierarchy

  • Error
    • GuildedRESTError

Constructors

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, 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[]