Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RpcError

Error thrown by an RpcClientInstance, if parsing the body of the response failed.

Hierarchy

  • Error
    • RpcError

Index

Constructors

constructor

  • new RpcError(status: number, statusText: string, headers: object, body: string): RpcError
  • Creates an instance of RpcError.

    Parameters

    • status: number

      Status code of the HTTP response.

    • statusText: string

      Status text of the HTTP response.

    • headers: object

      Headers of the HTTP response.

    • body: string

      Body of the HTTP response.

    Returns RpcError

Properties

body

body: string

Body of the HTTP response.

headers

headers: object

Headers of the HTTP response.

status

status: number

Status code of the HTTP response.

statusText

statusText: string

Status text of the HTTP response.

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: undefined | string

Generated using TypeDoc