Update exception handling in JavaScript roadmap (#1657)
parent
a22815e321
commit
f5b226e353
1 changed files with 5 additions and 1 deletions
@ -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…
Reference in new issue