ProjectVAuthenticationError class
Why a sign-in command failed, in a form the Login UI can show or localize.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Authentication
public sealed class ProjectVAuthenticationError
Constructors​
ProjectVAuthenticationError(ProjectVBackendErrorCategory category, string code, string? requestId)​
Creates an error. Mostly useful for tests and fake presenters.
public ProjectVAuthenticationError(ProjectVBackendErrorCategory category, string code, string? requestId);
Parameters
| Name | Type | Description |
|---|---|---|
category | ProjectVBackendErrorCategory | The kind of failure, such as refused credentials or no network. |
code | string | The specific error code; must not be null. |
requestId | string? | The server request ID for support reports, or null when there is none. |
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | code is null. |
Properties​
| Property | Type | Description |
|---|---|---|
Category | ProjectVBackendErrorCategory | The kind of failure. Authentication means the credentials were refused, Network or Unavailable means the player can retry, Cancelled means the player backed out. |
Code | string | The specific error code, for branching on one exact case or for support. Not text for the player. |
RequestId | string? | The server request ID to include in support reports; null when the failure happened on the device. |
LocalizationKey | string | The localization key for the player message, such as projectv.authentication.network. There is one key per Category. |