Class MatrixException
A homeserver returned a Matrix error, e.g. M_FORBIDDEN or M_UNKNOWN_TOKEN.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public sealed class MatrixException : Exception, ISerializable
Constructors
| Edit this page View SourceMatrixException(HttpStatusCode, string, string?, TimeSpan?)
A homeserver returned a Matrix error, e.g. M_FORBIDDEN or M_UNKNOWN_TOKEN.
Declaration
public MatrixException(HttpStatusCode statusCode, string errcode, string? error, TimeSpan? retryAfter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | statusCode | |
| string | errcode | |
| string | error | |
| TimeSpan? | retryAfter |
Properties
| Edit this page View SourceErrcode
Matrix error code.
Declaration
public string Errcode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Error
Human-readable error message.
Declaration
public string? Error { get; }
Property Value
| Type | Description |
|---|---|
| string |
RetryAfter
Wait time requested by the server with M_LIMIT_EXCEEDED.
Declaration
public TimeSpan? RetryAfter { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan? |
StatusCode
HTTP status of the response.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |