Class: MatrixError

http-api.MatrixError

new MatrixError(errorJson)

Construct a Matrix error. This is a JavaScript Error with additional information specific to the standard Matrix error response.
Parameters:
Name Type Description
errorJson Object The Matrix error JSON returned from the homeserver.
Properties:
Name Type Description
errcode string The Matrix 'errcode' value, e.g. "M_FORBIDDEN".
name string Same as MatrixError.errcode but with a default unknown string.
message string The Matrix 'error' value, e.g. "Missing token."
data Object The raw Matrix error JSON used to construct this object.
httpStatus integer The numeric HTTP status code given
Source:

Members

constructor

Source: