docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LobbyServiceException

    Represents an exception that occurs when communicating with the Unity Lobby Service.

    Inheritance
    object
    Exception
    RequestFailedException
    LobbyServiceException
    Implements
    ISerializable
    Inherited Members
    RequestFailedException.ErrorCode
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Services.Lobbies
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    public class LobbyServiceException : RequestFailedException, ISerializable

    Constructors

    LobbyServiceException(Exception)

    Creates a LobbyServiceException.

    Declaration
    public LobbyServiceException(Exception innerException)
    Parameters
    Type Name Description
    Exception innerException

    The exception raised by the service, if any.

    LobbyServiceException(long, string)

    Creates a LobbyServiceException.

    Declaration
    public LobbyServiceException(long errorCode, string message)
    Parameters
    Type Name Description
    long errorCode

    The error code or the HTTP Status returned by the service.

    string message

    The description of the exception.

    LobbyServiceException(LobbyExceptionReason, string)

    Creates a LobbyServiceException.

    Declaration
    public LobbyServiceException(LobbyExceptionReason reason, string message)
    Parameters
    Type Name Description
    LobbyExceptionReason reason

    The error code or the HTTP Status returned by the service.

    string message

    The description of the exception.

    LobbyServiceException(LobbyExceptionReason, string, Exception)

    Creates a LobbyServiceException.

    Declaration
    public LobbyServiceException(LobbyExceptionReason reason, string message, Exception innerException)
    Parameters
    Type Name Description
    LobbyExceptionReason reason

    The error code or the HTTP Status returned by the service.

    string message

    The description of the exception.

    Exception innerException

    The exception raised by the service, if any.

    Properties

    ApiError

    If applicable, the specific details of the API error that caused the exception.

    Declaration
    public ErrorStatus ApiError { get; }
    Property Value
    Type Description
    ErrorStatus

    Reason

    The reason of the exception.

    Declaration
    public LobbyExceptionReason Reason { get; }
    Property Value
    Type Description
    LobbyExceptionReason

    Implements

    ISerializable
    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)