v1.1.4
Latest
2022.3+
Class LobbyServiceException
Represents an exception that occurs when communicating with the Unity Lobby Service.
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Lobbies
Syntax
public class LobbyServiceException : RequestFailedException, ISerializable, _Exception
Constructors
LobbyServiceException(Exception)
Creates a LobbyServiceException.
Declaration
public LobbyServiceException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | innerException | The exception raised by the service, if any. |
LobbyServiceException(Int64, String)
Creates a LobbyServiceException.
Declaration
public LobbyServiceException(long errorCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | errorCode | The error code or the HTTP Status returned by the service. |
System.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. |
System.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. |
System.String | message | The description of the exception. |
System.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 |