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.Object → System.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
| Member | Source |
|---|---|
GetBaseException() | inherited from Exception |
GetObjectData(Runtime.Serialization.SerializationInfo, Runtime.Serialization.StreamingContext) | inherited from Exception |
GetType() | inherited from Exception |
ToString() | inherited from Exception |
Inherited Properties
| Member | Source |
|---|---|
Data | inherited from Exception |
HelpLink | inherited from Exception |
HResult | inherited from Exception |
InnerException | inherited from Exception |
Message | inherited from Exception |
Source | inherited from Exception |
StackTrace | inherited from Exception |
TargetSite | inherited from Exception |
Inherited Events
| Member | Source |
|---|---|
SerializeObjectState | inherited from Exception |