mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 15:34:38 +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}`,
|
|
)
|
|
}
|
|
}
|