Represents an HTTP error from the Appservice.

Hierarchy

  • Error
    • AppserviceHttpError

Constructors

  • Creates a new Appservice HTTP error

    Parameters

    • body: { errcode: string; error: string }

      The error body.

      • errcode: string
      • error: string
    • status: number

      The HTTP status code.

    Returns AppserviceHttpError

Properties

body: { errcode: string; error: string }

Type declaration

  • errcode: string
  • error: string
errcode: string

The Matrix error code

error: string

Optional human-readable error message.

name: string
stack?: string
status: number
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get message(): string
  • Developer-friendly error message.

    Returns string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc