Last active
November 17, 2020 18:56
-
-
Save ide/f24aff7211caf017ac5731404ea2daa6 to your computer and use it in GitHub Desktop.
Custom error subclasses in JavaScript (2020)
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
class CustomError extends Error {} | |
CustomError.prototype.name = CustomError.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment