docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AuthenticationException

    AuthenticationException represents a runtime exception from authentication.

    Inheritance
    object
    AuthenticationException
    Namespace: Unity.Services.Authentication
    Assembly: Unity.Services.Authentication.dll
    Syntax
    public sealed class AuthenticationException : RequestFailedException
    Remarks

    See AuthenticationErrorCodes for possible error codes. Consult the service documentation for specific error codes various APIs can return.

    Properties

    Notifications

    Caches the player's notifications if any are available or null if none are available.

    Declaration
    public List<Notification> Notifications { get; }
    Property Value
    Type Description
    List<Notification>

    Methods

    Create(int, string, Exception)

    Creates the exception base on errorCode range. If the errorCode is less than AuthenticationErrorCodes.MinValue it creates a RequestFailedException. Otherwise it creates an AuthenticationException

    Declaration
    public static RequestFailedException Create(int errorCode, string message, Exception innerException = null)
    Parameters
    Type Name Description
    int errorCode

    Gets the error code for the current exception

    string message

    Gets a message that describes the current exception.

    Exception innerException

    Gets the Exception instance that caused the current exception.

    Returns
    Type Description
    RequestFailedException

    The built exception, either an AuthenticationException or a RequestFailedException

    In This Article
    Back to top
    Copyright © 2024 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)