Error class

The JavaScript object that describes something going wrong, with a name such as TypeError and a human-readable message.

In more detail

Browsers throw specific kinds: TypeError when a Trusted Types check fails, DOMException named QuotaExceededError or AbortError for storage and cancellation. Checking err.name tells you which case you are handling.

Related terms

Taught in

References