Class AuthorizationException
A refused request, with the HTTP status and Matrix error code to answer with.
Implements
Inherited Members
Namespace: Uniform.LiveKit.Authorization
Assembly: Uniform.LiveKit.Authorization.dll
Syntax
public sealed class AuthorizationException : Exception, ISerializable
Constructors
| Edit this page View SourceAuthorizationException(HttpStatusCode, string, string)
A refused request, with the HTTP status and Matrix error code to answer with.
Declaration
public AuthorizationException(HttpStatusCode status, string errorCode, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | status | The HTTP status, e.g. 403. |
| string | errorCode | The error code, e.g. Forbidden. |
| string | message | The reason. |
Properties
| Edit this page View SourceErrorCode
The Matrix error code.
Declaration
public string ErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Status
The HTTP status.
Declaration
public HttpStatusCode Status { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |
Methods
| Edit this page View SourceToError()
Return the body to answer with.
Declaration
public AuthorizationError ToError()
Returns
| Type | Description |
|---|---|
| AuthorizationError |