---
title: "Comment by Phillippe Santana on \"How to handle JavaScript Errors with\n                         Try, Catch, Finally and Throw\" | Hashnode"
description: "Hi Chhakuli Zingare , congratulations on starting your blogging journey 🙂 This is a very important topic, and I&#39;m glad you chose to talk about it. I have s"
url: "https://hashnode.com/posts/how-to-handle-javascript-errors-with-try-catch-finally-and-throw/631721622cef8b07c2f1be09/comment/6317b09e961d2507e75fc60b"
---

[Discussion](https://hashnode.com/posts/how-to-handle-javascript-errors-with-try-catch-finally-and-throw/631721622cef8b07c2f1be09)

Comment [How to handle JavaScript Errors with Try, Catch, Finally and Throw](https://hashnode.com/posts/how-to-handle-javascript-errors-with-try-catch-finally-and-throw/631721622cef8b07c2f1be09)

[Phillippe Santana](https://hashnode.com/@phillippelevidad)

[Sep 6, 2022](https://hashnode.com/posts/how-to-handle-javascript-errors-with-try-catch-finally-and-throw/631721622cef8b07c2f1be09/comment/6317b09e961d2507e75fc60b)

Hi [Chhakuli Zingare](https://hashnode.com/@chhakuli), congratulations on starting your blogging journey 🙂

This is a very important topic, and I'm glad you chose to talk about it.

I have some related articles I would like to share:

The first talks about [the only two cases when you should handle errors](https://phillcode.io/the-only-two-cases-when-you-should-handle-exceptions). It is important because handling errors in the wrong place can lead to situations which are difficul to debug and resolve.

The second is about [validating data elegantly with Guard Clauses](https://phillcode.io/better-data-validation-with-guard-clauses), because we must anticipate that users WILL input incorrect data and that is not a case for program errors/exceptions, but only validation errors, which are expected.

Best!
