Table of Contents

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 = 0

Throw an JsonSettingsRecoveryException on loading.

RenameAndLoadDefault = 1

Will 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 = 2

Incase of invalid version, default settings will be loaded without touching the existing file until next save.

LoadDefaultAndSave = 3

Incase of invalid version, default settings will be loaded and saved to disk immediately.