Any error instance - including:
Error
new Error()
SyntaxError
TypeError
RangeError
The __constructor refers to the actual constructor function (e.g. Error, SyntaxError, or a custom class).
__constructor
Any error instance - including:
Errortype (new Error())SyntaxError,TypeError,RangeError, etc.)ErrorclassThe
__constructorrefers to the actual constructor function (e.g.Error,SyntaxError, or a custom class).