Chuyển tới nội dung chính

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

NameTypeDescription
categoryProjectVBackendErrorCategoryThe kind of failure, such as refused credentials or no network.
codestringThe specific error code; must not be null.
requestIdstring?The server request ID for support reports, or null when there is none.

Exceptions

ExceptionWhen
ArgumentNullExceptioncode is null.

Properties​

PropertyTypeDescription
CategoryProjectVBackendErrorCategoryThe kind of failure. Authentication means the credentials were refused, Network or Unavailable means the player can retry, Cancelled means the player backed out.
CodestringThe specific error code, for branching on one exact case or for support. Not text for the player.
RequestIdstring?The server request ID to include in support reports; null when the failure happened on the device.
LocalizationKeystringThe localization key for the player message, such as projectv.authentication.network. There is one key per Category.