nestjs-telegraf/lib/InvalidConfigurationException.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}`,
)
}
}