Created
November 19, 2021 01:59
-
-
Save loloDawit/91995fa298fd430d0e9a0bb9288310fc to your computer and use it in GitHub Desktop.
error.js
This file contains hidden or 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
| "use strict"; | |
| class ErrorResponse extends Error { | |
| constructor(message, statusCode) { | |
| super(message); | |
| this.statusCode = statusCode; | |
| } | |
| } | |
| module.exports = ErrorResponse; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment