mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-26 07:48:11 +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}`,
|
||
|
)
|
||
|
}
|
||
|
}
|