Update exception handling in JavaScript roadmap (#1657)

pull/1660/head
Jozias Martini 2 years ago committed by GitHub
parent a22815e321
commit f5b226e353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/readme.md

@ -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…
Cancel
Save