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.
13 lines
359 B
13 lines
359 B
/**
|
|
* An error to be thrown when a configuration value is invalid.
|
|
*/
|
|
export class ConfigError extends Error {
|
|
constructor(
|
|
public readonly key: string,
|
|
public readonly supplied_value: any,
|
|
message?: string
|
|
) {
|
|
super(message || `The value of the config key "${key}" is invalid. (${supplied_value} provided)`)
|
|
}
|
|
}
|