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
messagestringThe 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
messagestringThe message that describes the error.
errorKindSteamNetworkErrorKindThe broad reason the operation failed.
operationstringThe API operation or lifecycle step that failed.
isRetryableboolTrue 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
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.
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
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.
isRetryableboolTrue when retrying later may succeed; otherwise, false.
Properties
ErrorKind
Gets the broad reason the operation failed.
public SteamNetworkErrorKind ErrorKind { get; }
Property Value
IsRetryable
Gets a value indicating whether retrying the operation later may succeed.
public bool IsRetryable { get; }
Property Value
Operation
Gets the API operation or lifecycle step that failed, if available.
public string? Operation { get; }