ReplaySaveFormatException

Save data was malformed, schema-incompatible, or otherwise unparseable. Thrown by RestoreFromJson(string, RecoveryMode, ResolutionPolicy) when the incoming JSON cannot be deserialized into a valid ReplaySave — for example because the JSON is truncated, was produced by an incompatible schema version, or was corrupted in transit.

public class ReplaySaveFormatException : Exception

Inheritance System.ObjectSystem.Exception → ReplaySaveFormatException

Remarks

Catch ReplaySaveFormatException to distinguish parse/schema failures from replay execution failures (ReplayRestoreException covers the latter).

Constructors

ReplaySaveFormatException(string)

Initializes a new instance with a description of the format failure.

public ReplaySaveFormatException(string message);
Parameters

message System.String

Human-readable description of why the save was rejected.

ReplaySaveFormatException(string, Exception)

Initializes a new instance with a description and the underlying System.Exception that triggered the parse failure.

public ReplaySaveFormatException(string message, Exception inner);
Parameters

message System.String

Human-readable description of why the save was rejected.

inner System.Exception

The deserialization exception that caused this failure.

Inherited Methods

MemberSource
GetBaseException()inherited from Exception
GetObjectData(Runtime.Serialization.SerializationInfo, Runtime.Serialization.StreamingContext)inherited from Exception
GetType()inherited from Exception
ToString()inherited from Exception

Inherited Properties

MemberSource
Datainherited from Exception
HelpLinkinherited from Exception
HResultinherited from Exception
InnerExceptioninherited from Exception
Messageinherited from Exception
Sourceinherited from Exception
StackTraceinherited from Exception
TargetSiteinherited from Exception

Inherited Events

MemberSource
SerializeObjectStateinherited from Exception
Docs last synced: 2026-07-08
Screenshot viewer