Class MatrixErrorException
A Matrix error whose body has fields beyond errcode and error, e.g. current_version of M_WRONG_ROOM_KEYS_VERSION.
Implements
Inherited Members
Namespace: Uniform.Matrix.Server.Http
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed class MatrixErrorException : Exception, ISerializable
Constructors
| Edit this page View SourceMatrixErrorException(HttpStatusCode, string, string, JsonObject)
A Matrix error whose body has fields beyond errcode and error, e.g. current_version of M_WRONG_ROOM_KEYS_VERSION.
Declaration
public MatrixErrorException(HttpStatusCode statusCode, string errcode, string error, JsonObject fields)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | statusCode | HTTP status. |
| string | errcode | Matrix error code. |
| string | error | Human-readable message. |
| JsonObject | fields | Extra fields of the body. |
Properties
| Edit this page View SourceErrcode
Matrix error code.
Declaration
public string Errcode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Fields
Extra fields of the body.
Declaration
public JsonObject Fields { get; }
Property Value
| Type | Description |
|---|---|
| JsonObject |
StatusCode
HTTP status.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |