Class PlayerAccountsException
Represents an exception related to the Player Accounts service. This exception is thrown when an error occurs while processing a request.
Namespace: Unity.Services.PlayerAccounts
Assembly: Unity.Services.PlayerAccounts.dll
Syntax
public sealed class PlayerAccountsException : RequestFailedException
Constructors
PlayerAccountsException(int, string, Exception)
Initializes a new instance of the PlayerAccountsException class.
Declaration
public PlayerAccountsException(int errorCode, string message, Exception innerException = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | errorCode | The error code associated with the exception. |
| string | message | A message that describes the error. |
| Exception | innerException | The exception that caused the current exception, or null if none. |
Methods
Create(int, string, Exception)
Creates a new instance of the PlayerAccountsException class.
Declaration
public static PlayerAccountsException Create(int errorCode, string message, Exception innerException = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | errorCode | The error code associated with the exception. |
| string | message | A message that describes the error. |
| Exception | innerException | The exception that caused the current exception, or null if none. |
Returns
| Type | Description |
|---|---|
| PlayerAccountsException | A new instance of the PlayerAccountsException class. |