Enum RecoveryAction
- Namespace
- Nucs.JsonSettings.Modulation.Recovery
- Assembly
- Nucs.JsonSettings.dll
In a case of an invalid action, what should be the course.
public enum RecoveryAction
Fields
Throw = 0Throw an JsonSettingsRecoveryException on loading.
RenameAndLoadDefault = 1Will append the version to the end of the faulty file's name and load the default settings and save to disk.
i.e. 'myfile.json' versioned 1.0.0.5 will be renamed to myfile.1.0.0.5.json if it fails on parsing.LoadDefault = 2Incase of invalid version, default settings will be loaded without touching the existing file until next save.
LoadDefaultAndSave = 3Incase of invalid version, default settings will be loaded and saved to disk immediately.