docs.unity.cn
    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, December 7, 2022
    Terms of use