Class SyncException
- Namespace
- SteamNetworkLib.Sync
- Assembly
- SteamNetworkLib.dll
Exception thrown when a sync operation fails due to network or state issues.
public class SyncException : Exception, ISerializable
- Inheritance
-
SyncException
- Implements
- Inherited Members
Remarks
This exception is thrown when:
- Network connectivity issues prevent sync operations
- Steam network state is invalid or disconnected
- Sync operations fail due to internal Steamworks API errors
- Operation timeouts occur during sync
This exception provides information about the sync key when available and wraps any underlying Steamworks API exceptions.
Constructors
SyncException(string)
Initializes a new instance of the SyncException class.
public SyncException(string message)
Parameters
messagestringThe error message.
SyncException(string, Exception)
Initializes a new instance of the SyncException class.
public SyncException(string message, Exception innerException)
Parameters
messagestringThe error message.
innerExceptionExceptionThe inner exception that caused this exception.
SyncException(string, string)
Initializes a new instance of the SyncException class with key information.
public SyncException(string message, string syncKey)
Parameters
SyncException(string, string, Exception)
Initializes a new instance of the SyncException class with full details.
public SyncException(string message, string syncKey, Exception innerException)
Parameters
messagestringThe error message.
syncKeystringThe sync key associated with the operation.
innerExceptionExceptionThe inner exception that caused this exception.
Properties
SyncKey
Gets the key associated with the sync operation, if available.
public string? SyncKey { get; }