Class MatrixError

Construct a Matrix error. This is a JavaScript Error with additional information specific to the standard Matrix error response.

Param

The Matrix error JSON returned from the homeserver.

Prop

The Matrix 'errcode' value, e.g. "M_FORBIDDEN".

Prop

Same as MatrixError.errcode but with a default unknown string.

Prop

The Matrix 'error' value, e.g. "Missing token."

Prop

The raw Matrix error JSON used to construct this object.

Prop

The numeric HTTP status code given

Hierarchy

Constructors

Properties

Constructors

Properties

errcode?: string
event?: MatrixEvent
httpStatus?: number
url?: string

Generated using TypeDoc