Class

MatrixError

MatrixError(body, statusCode)

Represents an HTTP error from the Matrix server.
Constructor

# new MatrixError(body, statusCode)

Creates a new Matrix Error
Parameters:
Name Type Description
body The error body.
statusCode The HTTP status code.

View Source models/MatrixError.ts, line 6

Classes

MatrixError
MatrixError

Members

# errcode

The Matrix error code

View Source models/MatrixError.ts, line 12

string

# errcode

The Matrix error code

View Source models/MatrixError.ts, line 48

# error

Optional human-readable error message.

View Source models/MatrixError.ts, line 16

string

# error

Optional human-readable error message.

View Source models/MatrixError.ts, line 54

# message

Developer-friendly error message.

View Source models/MatrixError.ts, line 37

# retryAfterMs

If rate limited, the time in milliseconds to wait before retrying the request

View Source models/MatrixError.ts, line 20

number

# retryAfterMs

If rate limited, the time in milliseconds to wait before retrying the request

View Source models/MatrixError.ts, line 60

Methods

# message()

Developer-friendly error message.

View Source models/MatrixError.ts, line 74