Config reading system.
Ctor AppConfig(string) create a config from file.
Represent configuration file.
Deserializing config from provided json object.
Parsing config from file path.
Describes basic sql info in AppConfig
The exception is thrown when configuration parsing error occurs (AppConfig constructor). Also encapsulates config file name.
The exception is thrown by tryConfigPaths is called and all config file alternatives are failed to be loaded.
Also encapsulates a set of tried paths.
Return value from tryConfigPaths. Handles loaded config and exact file path.
Takes range of paths and one at a time tries to load config from each one. If the path doesn't exist, then the next candidate is checked. If the file exists, but parsing or deserializing are failed, InvalidConfig exception is thrown.
If functions go out of paths and none of them can be opened, then NoConfigLoaded exception is thrown.
Returns config example to be edited by end user.
This configuration is generated only if explicit key is passed to the application.
Writes configuration appConfig to file path name. It is a wrapper function around writeJson.
Writes down json to provided file name.
Generates and write down minimal configuration to path.