diff --git a/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/readme.md b/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/readme.md index d8e7f3d3c..c2843c187 100644 --- a/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/readme.md +++ b/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/readme.md @@ -1 +1,5 @@ -# Exception handling \ No newline at end of file +# 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) + +Throwing Exceptions in JavaScript