Class LobbyException
- Namespace
- SteamNetworkLib.Exceptions
- Assembly
- SteamNetworkLib.dll
Exception thrown when lobby-specific operations fail. Provides additional context about Steam lobby operations including result codes and lobby IDs.
public class LobbyException : SteamNetworkException, ISerializable
- Inheritance
-
LobbyException
- Implements
- Inherited Members
Constructors
LobbyException()
Initializes a new instance of the LobbyException class.
public LobbyException()
LobbyException(string)
Initializes a new instance of the LobbyException class with a specified error message.
public LobbyException(string message)
Parameters
message
stringThe message that describes the error.
LobbyException(string, CSteamID)
Initializes a new instance of the LobbyException class with a specified error message and lobby ID.
public LobbyException(string message, CSteamID lobbyId)
Parameters
message
stringThe message that describes the error.
lobbyId
CSteamIDThe Steam ID of the lobby associated with the operation.
LobbyException(string, EResult)
Initializes a new instance of the LobbyException class with a specified error message and Steam result code.
public LobbyException(string message, EResult steamResult)
Parameters
message
stringThe message that describes the error.
steamResult
EResultThe Steam result code that indicates the specific failure reason.
LobbyException(string, EResult, CSteamID)
Initializes a new instance of the LobbyException class with a specified error message, Steam result code, and lobby ID.
public LobbyException(string message, EResult steamResult, CSteamID lobbyId)
Parameters
message
stringThe message that describes the error.
steamResult
EResultThe Steam result code that indicates the specific failure reason.
lobbyId
CSteamIDThe Steam ID of the lobby associated with the operation.
LobbyException(string, Exception)
Initializes a new instance of the LobbyException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public LobbyException(string message, Exception inner)
Parameters
message
stringThe error message that explains the reason for the exception.
inner
ExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Properties
LobbyId
Gets the Steam ID of the lobby associated with the operation, if available.
public CSteamID? LobbyId { get; }
Property Value
- CSteamID?
SteamResult
Gets the Steam result code associated with the lobby operation, if available.
public EResult? SteamResult { get; }
Property Value
- EResult?