Skip to content

Commit

Permalink
feat(error): add new error
Browse files Browse the repository at this point in the history
  • Loading branch information
emkis committed May 15, 2022
1 parent 36739e9 commit 47e20ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/error/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { WarningError } from './error'
export { WarningError } from './warning'
export { InvalidConfigurationError } from './invalid-configuration'
6 changes: 6 additions & 0 deletions src/error/invalid-configuration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export class InvalidConfigurationError extends Error {
constructor(message: string) {
super(message)
this.name = 'InvalidConfiguration'
}
}

0 comments on commit 47e20ea

Please sign in to comment.