Skip to content

Glossary: JavaScript Beyond the Basics

Re-throw

Also written: rethrow

Throwing a caught error again when you can't handle it, so it reaches code that can or stops the program loudly. It keeps a bug from hiding behind a friendly message.

Where the book teaches it

Related terms

Error classes (custom)instanceof