docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerAccountsException

    Represents an exception related to the Player Accounts service. This exception is thrown when an error occurs while processing a request.

    Inheritance
    object
    PlayerAccountsException
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)