-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from donghquinn/dev
Dev
- Loading branch information
Showing
19 changed files
with
453 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
export class GeekError extends Error { | ||
type: string; | ||
|
||
constructor(type: string, message: string, cause?: Error) { | ||
super(message); | ||
|
||
this.type = type; | ||
|
||
this.name = '[Geek Error]'; | ||
|
||
this.cause = cause; | ||
} | ||
} | ||
|
||
export class HackerError extends Error { | ||
type: string; | ||
|
||
constructor(type: string, message: string, cause?: Error) { | ||
super(message); | ||
|
||
this.type = type; | ||
|
||
this.name = '[Hacker News Error]'; | ||
|
||
this.cause = cause; | ||
} | ||
} | ||
|
||
export class MachineLearningError extends Error { | ||
type: string; | ||
|
||
constructor(type: string, message: string, cause?: Error) { | ||
super(message); | ||
|
||
this.type = type; | ||
|
||
this.name = '[Machine Learning Error]'; | ||
|
||
this.cause = cause; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.