commit
933861dec6
1 changed files with 1 additions and 1 deletions
|
@ -668,4 +668,4 @@ We can also generate our own errors using the `throw` operator. Technically, the
|
||||||
|
|
||||||
*Rethrowing* is a very important pattern of error handling: a `catch` block usually expects and knows how to handle the particular error type, so it should rethrow errors it doesn't know.
|
*Rethrowing* is a very important pattern of error handling: a `catch` block usually expects and knows how to handle the particular error type, so it should rethrow errors it doesn't know.
|
||||||
|
|
||||||
Even if we don't have `try..catch`, most environments allow to setup a "global" error handler to catch errors that "fall out". In-browser that's `window.onerror`.
|
Even if we don't have `try..catch`, most environments allow us to setup a "global" error handler to catch errors that "fall out". In-browser, that's `window.onerror`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue