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