mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-30 20:31:21 +03:00
refactor(): complex refactoring
This commit is contained in:
1
lib/exeptions/index.ts
Normal file
1
lib/exeptions/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './invalid-configuration.exeption';
|
10
lib/exeptions/invalid-configuration.exeption.ts
Normal file
10
lib/exeptions/invalid-configuration.exeption.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export class InvalidConfigurationException extends Error {
|
||||
public constructor(
|
||||
public readonly invalidField,
|
||||
public readonly invalidCause,
|
||||
) {
|
||||
super(
|
||||
`Options validation failed, "${invalidField}" invalid — ${invalidCause}`,
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user