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
messagestringThe message that describes the error.
LobbyException(string, SteamNetworkErrorKind, string?, CSteamID??, CSteamID??, string?, bool, EResult??, bool)
Initializes a new instance of the LobbyException class with structured diagnostic details.
public LobbyException(string message, SteamNetworkErrorKind errorKind, string? operation = null, CSteamID?? lobbyId = null, CSteamID?? memberId = null, string? dataKey = null, bool requiresHost = false, EResult?? steamResult = null, bool isRetryable = false)
Parameters
messagestringThe message that describes the error.
errorKindSteamNetworkErrorKindThe broad reason the operation failed.
operationstringThe API operation or lifecycle step that failed.
lobbyIdCSteamID?The Steam ID of the lobby associated with the operation, if available.
memberIdCSteamID?The Steam ID of the member associated with the operation, if available.
dataKeystringThe lobby or member data key associated with the operation, if available.
requiresHostboolTrue when the operation requires lobby host authority; otherwise, false.
steamResultEResult?The Steam result code associated with the operation, if available.
isRetryableboolTrue when retrying later may succeed; otherwise, false.
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
messagestringThe message that describes the error.
lobbyIdCSteamIDThe 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
messagestringThe message that describes the error.
steamResultEResultThe 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
messagestringThe message that describes the error.
steamResultEResultThe Steam result code that indicates the specific failure reason.
lobbyIdCSteamIDThe 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
messagestringThe error message that explains the reason for the exception.
innerExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
LobbyException(string, Exception, SteamNetworkErrorKind, string?, CSteamID?, CSteamID?, string?, bool, EResult?, bool)
Initializes a new instance of the LobbyException class with structured diagnostic details and an inner exception.
public LobbyException(string message, Exception inner, SteamNetworkErrorKind errorKind, string? operation = null, CSteamID? lobbyId = null, CSteamID? memberId = null, string? dataKey = null, bool requiresHost = false, EResult? steamResult = null, bool isRetryable = false)
Parameters
messagestringThe message that describes the error.
innerExceptionThe exception that caused the current exception.
errorKindSteamNetworkErrorKindThe broad reason the operation failed.
operationstringThe API operation or lifecycle step that failed.
lobbyIdCSteamID?The Steam ID of the lobby associated with the operation, if available.
memberIdCSteamID?The Steam ID of the member associated with the operation, if available.
dataKeystringThe lobby or member data key associated with the operation, if available.
requiresHostboolTrue when the operation requires lobby host authority; otherwise, false.
steamResultEResult?The Steam result code associated with the operation, if available.
isRetryableboolTrue when retrying later may succeed; otherwise, false.
Properties
DataKey
Gets the lobby or member data key associated with the operation, if available.
public string? DataKey { get; }
Property Value
LobbyId
Gets the Steam ID of the lobby associated with the operation, if available.
public CSteamID? LobbyId { get; }
Property Value
- CSteamID?
LobbyId64
Gets the lobby Steam ID as a 64-bit integer, or 0 when no lobby ID is available.
public ulong LobbyId64 { get; }
Property Value
MemberId
Gets the Steam ID of the member associated with the operation, if available.
public CSteamID? MemberId { get; }
Property Value
- CSteamID?
MemberId64
Gets the member Steam ID as a 64-bit integer, or 0 when no member ID is available.
public ulong MemberId64 { get; }
Property Value
RequiresHost
Gets a value indicating whether the failed operation requires lobby host authority.
public bool RequiresHost { get; }
Property Value
SteamResult
Gets the Steam result code associated with the lobby operation, if available.
public EResult? SteamResult { get; }
Property Value
- EResult?