Table of Contents

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

message string

The error message.

SyncSerializationException(string, Exception)

Initializes a new instance of the SyncSerializationException class.

public SyncSerializationException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The 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

message string

The error message.

targetType Type

The type that failed to serialize/deserialize.

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

message string

The error message.

targetType Type

The type that failed to serialize/deserialize.

syncKey string

The 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

message string

The error message.

targetType Type

The type that failed to serialize/deserialize.

syncKey string

The sync key associated with the operation.

innerException Exception

The inner exception that caused this exception.

Properties

SyncKey

Gets the key associated with the sync operation, if available.

public string? SyncKey { get; }

Property Value

string

TargetType

Gets the type that failed to serialize/deserialize, if available.

public Type? TargetType { get; }

Property Value

Type