public ConfigProvider() { if (!File.Exists(configPath)) { Config = Default; return; } try { LoadConfig(); } catch (Exception e) { throw new Exception($"Error reading configuration from '{configPath}'", e); } }
void LoadConfig() { Config = Json.Load<Config>(configPath); }