mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-27 00:08:09 +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}`,
|
||
|
)
|
||
|
}
|
||
|
}
|