Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RequestError

This error is thrown after a failed request to the NationStates website and contains additional information about the failed request.

Hierarchy

  • Error
    • RequestError

Index

Constructors

constructor

  • new RequestError(message: string, responseMetadata?: IncomingMessage, responseText?: string): RequestError
  • Initializes a new instance of the ApiError class.

    Parameters

    • message: string

      The message associated with the error.

    • Optional responseMetadata: IncomingMessage

      The HTTP response metadata returned by the NationStates website.

    • Optional responseText: string

      The HTTP response text returned by the NationStates website.

    Returns RequestError

Properties

message

message: string

The message associated with the error.

Optional responseMetadata

responseMetadata: IncomingMessage

The HTTP response metadata returned by the NationStates website.

Optional responseText

responseText: string

The HTTP response text returned by the NationStates website.

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: string

Generated using TypeDoc