ConfigFileNotFoundException constructor
ConfigFileNotFoundException([
- String? configPath
Create ConfigFileNotFoundException object.
When configPath is provided, the message names that path. Otherwise it
keeps the default project-root wording.
Implementation
ConfigFileNotFoundException([String? configPath]) {
final String location = configPath == null
? 'an eagle_eye_config.json file exists at the root of your project'
: '"$configPath" exists';
super.message = '❌ Unable to load configuration file. '
'Please ensure that $location.';
}