Class SyncSerializationException
- Namespace
- SteamNetworkLib.Sync
- Assembly
- SteamNetworkLib.dll
Exception thrown when serialization or deserialization fails in sync operations.
public class SyncSerializationException : Exception, ISerializable
- Inheritance
-
SyncSerializationException
- Implements
- Inherited Members
Remarks
This exception is thrown when:
- A type cannot be serialized (unsupported type)
- Serialization fails due to circular references or other issues
- Deserialization fails due to malformed data or type mismatch
Constructors
SyncSerializationException(string)
Initializes a new instance of the SyncSerializationException class.
public SyncSerializationException(string message)
Parameters
messagestringThe error message.
SyncSerializationException(string, Exception)
Initializes a new instance of the SyncSerializationException class.
public SyncSerializationException(string message, Exception innerException)
Parameters
messagestringThe error message.
innerExceptionExceptionThe inner exception that caused this exception.
SyncSerializationException(string, Type)
Initializes a new instance of the SyncSerializationException class with type information.
public SyncSerializationException(string message, Type targetType)
Parameters
SyncSerializationException(string, Type, string)
Initializes a new instance of the SyncSerializationException class with type and key information.
public SyncSerializationException(string message, Type targetType, string syncKey)
Parameters
messagestringThe error message.
targetTypeTypeThe type that failed to serialize/deserialize.
syncKeystringThe sync key associated with the operation.
SyncSerializationException(string, Type, string, Exception)
Initializes a new instance of the SyncSerializationException class with full details.
public SyncSerializationException(string message, Type targetType, string syncKey, Exception innerException)
Parameters
messagestringThe error message.
targetTypeTypeThe type that failed to serialize/deserialize.
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; }
Property Value
TargetType
Gets the type that failed to serialize/deserialize, if available.
public Type? TargetType { get; }