Class PlayerAccountsException
Represents an exception related to the Player Accounts service. This exception is thrown when an error occurs while processing a request.
Inherited Members
Namespace: Unity.Services.PlayerAccounts
Syntax
public sealed class PlayerAccountsException : RequestFailedException, ISerializable, _Exception
Constructors
PlayerAccountsException(Int32, String, Exception)
Initializes a new instance of the PlayerAccountsException class.
Declaration
public PlayerAccountsException(int errorCode, string message, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
Int32 | 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(Int32, 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 |
---|---|---|
Int32 | 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. |