docs.unity3d.com
    Show / Hide Table of Contents

    Class AuthenticationException

    AuthenticationException represents a runtime exception from authentication.

    Inheritance
    Object
    Exception
    RequestFailedException
    AuthenticationException
    Inherited Members
    RequestFailedException.ErrorCode
    Namespace: Unity.Services.Authentication
    Syntax
    public sealed class AuthenticationException : RequestFailedException, ISerializable, _Exception

    Methods

    Create(Int32, 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
    Int32 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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023