Table of Contents

Class SteamNetworkException

Namespace
SteamNetworkLib.Exceptions
Assembly
SteamNetworkLib.dll

Base exception for all Steam networking operations in SteamNetworkLib. This serves as the parent class for more specific networking exceptions.

public class SteamNetworkException : Exception, ISerializable
Inheritance
SteamNetworkException
Implements
Derived
Inherited Members

Constructors

SteamNetworkException()

Initializes a new instance of the SteamNetworkException class.

public SteamNetworkException()

SteamNetworkException(string)

Initializes a new instance of the SteamNetworkException class with a specified error message.

public SteamNetworkException(string message)

Parameters

message string

The message that describes the error.

SteamNetworkException(string, SteamNetworkErrorKind, string?, bool)

Initializes a new instance of the SteamNetworkException class with structured diagnostic details.

public SteamNetworkException(string message, SteamNetworkErrorKind errorKind, string? operation = 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.

isRetryable bool

True when retrying later may succeed; otherwise, false.

SteamNetworkException(string, Exception)

Initializes a new instance of the SteamNetworkException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public SteamNetworkException(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.

SteamNetworkException(string, Exception, SteamNetworkErrorKind, string?, bool)

Initializes a new instance of the SteamNetworkException class with structured diagnostic details and an inner exception.

public SteamNetworkException(string message, Exception inner, SteamNetworkErrorKind errorKind, string? operation = 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.

isRetryable bool

True when retrying later may succeed; otherwise, false.

Properties

ErrorKind

Gets the broad reason the operation failed.

public SteamNetworkErrorKind ErrorKind { get; }

Property Value

SteamNetworkErrorKind

IsRetryable

Gets a value indicating whether retrying the operation later may succeed.

public bool IsRetryable { get; }

Property Value

bool

Operation

Gets the API operation or lifecycle step that failed, if available.

public string? Operation { get; }

Property Value

string