1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 22:02:39 +02:00

Update exception handling in JavaScript roadmap (#1657)

This commit is contained in:
Jozias Martini
2022-09-01 17:57:54 -03:00
committed by GitHub
parent a22815e321
commit f5b226e353

View File

@@ -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>