Links
- throw
- try...catch
- DOMException
- Error
- Subclasses
- Properties
- The Error Constructor Called as a Function
- When
Erroris called as a function rather than as a constructor, it creates and initialises a newErrorobject. Thus the function callError(…)is equivalent to the object creation expression newError(…)with the same arguments. - SO answer on inheriting from Error (fiddle)
- When