nestjs-telegraf/lib/exeptions/invalid-configuration.exeption.ts

11 lines
260 B
TypeScript
Raw Normal View History

2019-03-03 15:43:30 +03:00
export class InvalidConfigurationException extends Error {
public constructor(
public readonly invalidField,
public readonly invalidCause,
) {
super(
`Options validation failed, "${invalidField}" invalid — ${invalidCause}`,
)
}
}