Table of Contents

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 string

The 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

message string

The message that describes the error.

errorKind SteamNetworkErrorKind

The broad reason the operation failed.

operation string

The API operation or lifecycle step that failed.

lobbyId CSteamID?

The Steam ID of the lobby associated with the operation, if available.

memberId CSteamID?

The Steam ID of the member associated with the operation, if available.

dataKey string

The lobby or member data key associated with the operation, if available.

requiresHost bool

True when the operation requires lobby host authority; otherwise, false.

steamResult EResult?

The Steam result code associated with the operation, if available.

isRetryable bool

True 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

message string

The message that describes the error.

lobbyId CSteamID

The 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 string

The message that describes the error.

steamResult EResult

The 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 string

The message that describes the error.

steamResult EResult

The Steam result code that indicates the specific failure reason.

lobbyId CSteamID

The 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 string

The error message that explains the reason for the exception.

inner Exception

The 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

message string

The message that describes the error.

inner Exception

The exception that caused the current exception.

errorKind SteamNetworkErrorKind

The broad reason the operation failed.

operation string

The API operation or lifecycle step that failed.

lobbyId CSteamID?

The Steam ID of the lobby associated with the operation, if available.

memberId CSteamID?

The Steam ID of the member associated with the operation, if available.

dataKey string

The lobby or member data key associated with the operation, if available.

requiresHost bool

True when the operation requires lobby host authority; otherwise, false.

steamResult EResult?

The Steam result code associated with the operation, if available.

isRetryable bool

True 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

string

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

ulong

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

ulong

RequiresHost

Gets a value indicating whether the failed operation requires lobby host authority.

public bool RequiresHost { get; }

Property Value

bool

SteamResult

Gets the Steam result code associated with the lobby operation, if available.

public EResult? SteamResult { get; }

Property Value

EResult?