mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-02-24 03:23:08 +01:00
Update exception handling in JavaScript roadmap (#1657)
This commit is contained in:
parent
a22815e321
commit
f5b226e353
@ -1 +1,5 @@
|
||||
# Exception handling
|
||||
# Exception Handling
|
||||
|
||||
In JavaScript, all exceptions are simply objects. While the majority of exceptions are implementations of the global Error class, any old object can be thrown. With this in mind, there are two ways to throw an exception: directly via an Error object, and through a custom object. (excerpt from Rollbar)
|
||||
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://rollbar.com/guides/javascript/how-to-throw-exceptions-in-javascript'>Throwing Exceptions in JavaScript</BadgeLink>
|
||||
|
Loading…
x
Reference in New Issue
Block a user