nestjs-telegraf/lib/exeptions/invalid-configuration.exeption.ts
2020-01-12 02:41:27 +03:00

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}`,
)
}
}