Skip to content

Commit

Permalink
feat: add error module
Browse files Browse the repository at this point in the history
  • Loading branch information
emkis committed Apr 4, 2022
1 parent 55ee28b commit 17a6d9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/error/error.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export class WarningError extends Error {
constructor(message: string) {
super(message)
this.name = 'Warning'
}
}
1 change: 1 addition & 0 deletions src/error/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { WarningError } from './error'

0 comments on commit 17a6d9f

Please sign in to comment.