No-Library (pure JS), HTML, CSS, JavaScript
The following code shows how you might create and report an error, and how it may be caught by adding a listener for the `error` event.
jQuery 1.5.2, HTML, CSS, JavaScript