Table of Contents

Class SyncValidationException

Namespace
SteamNetworkLib.Sync
Assembly
SteamNetworkLib.dll

Exception thrown when value validation fails before sync.

public class SyncValidationException : Exception, ISerializable
Inheritance
SyncValidationException
Implements
Inherited Members

Remarks

This exception is thrown when:

  • A value fails validation rules before being synced
  • The value is null when a non-null value is required
  • The value type does not match the expected type for the sync key

This exception provides information about the invalid value and the associated sync key when available.

Constructors

SyncValidationException(string)

Initializes a new instance of the SyncValidationException class.

public SyncValidationException(string message)

Parameters

message string

The error message.

SyncValidationException(string, string, object?)

Initializes a new instance of the SyncValidationException class.

public SyncValidationException(string message, string syncKey, object? invalidValue)

Parameters

message string

The error message.

syncKey string

The sync key associated with the operation.

invalidValue object

The value that failed validation.

Properties

InvalidValue

Gets the invalid value, if available.

public object? InvalidValue { get; }

Property Value

object

SyncKey

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

public string? SyncKey { get; }

Property Value

string