mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
11 lines
260 B
TypeScript
11 lines
260 B
TypeScript
export class InvalidConfigurationException extends Error {
|
|
public constructor(
|
|
public readonly invalidField,
|
|
public readonly invalidCause,
|
|
) {
|
|
super(
|
|
`Options validation failed, "${invalidField}" invalid — ${invalidCause}`,
|
|
)
|
|
}
|
|
}
|