But there are always basic attributes: name The error type, for browser-generated errors it matches error constructor function, like TypeError, ReferenceError etc. The "finally" clause is always executed, no matter what. Error instances All Error instances and instances of non-generic errors inherit from Error.prototype. It is extremely important that an exception must be processed or rethrown, not left alone, unless you absolutely know what you're doing.
We appreciate your feedback. The Error object can also be used as a base object for user-defined exceptions. Otherwise, the exception is rethrown. In both cases, after either successful try or catch, the finally code is executed.