You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
508 B
16 lines
508 B
/// Exception thrown when an invalid environment is provided to [ConfigLoader].
|
|
class InvalidEnvironmentException implements Exception {
|
|
/// The invalid environment that was provided.
|
|
final String environment;
|
|
|
|
/// Creates an [InvalidEnvironmentException] with the provided environment.
|
|
InvalidEnvironmentException(this.environment);
|
|
|
|
@override
|
|
String toString() {
|
|
return 'InvalidEnvironmentException: Invalid environment "$environment". '
|
|
'Valid environments are: dev, prod';
|
|
}
|
|
}
|
|
|