Create Exception
class
#259
Labels
cleanup
This doesn't seem right, refactor, etc
library
For libraries
linkedin-tool
For the LinkedIn Tool userscript
Inheriting from
Error
does NOT update the name property, so new exceptions will show the wrong name. Overriding to use this.constructor.name is common.Currently, all of our custom ones override the constructor, but providing a
get name()
works as well. We should do that, and update all modules to use it for module level exceptions.The xunit library has a special case inside
TestCase
that could be move away from the ctor to a getter as well.Starting state:
The text was updated successfully, but these errors were encountered: