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
messagestringThe error message.
SyncValidationException(string, string, object?)
Initializes a new instance of the SyncValidationException class.
public SyncValidationException(string message, string syncKey, object? invalidValue)
Parameters
messagestringThe error message.
syncKeystringThe sync key associated with the operation.
invalidValueobjectThe value that failed validation.
Properties
InvalidValue
Gets the invalid value, if available.
public object? InvalidValue { get; }
Property Value
SyncKey
Gets the key associated with the sync operation, if available.
public string? SyncKey { get; }