Hello everybody, the topic today is going to be Handling Exceptions in JavaScript, which is pretty important because I’ve seen a lot of my coworkers been concerned on how to properly code C# or PHP, but when the time comes to interact with the user in the browser, let’s say to do some simple things like, display a message or show some results, the application just crashes, why?!? Because they didn’t give the same importance to the client side, and you as a developer is responsible to make sure not only IF but WHEN an error happens your code is able to handle it and if the system requires keep running without stopping the whole application. So I’m going to create an example to show the 2(two) ways we can do to accomplish that in JavaScript.
Part 1
Part 2
That’s all you needed to do and know, thank you very much. I hope you have enjoyed.
To download the code, click here -> Handling Exceptions in JavaScript
Author: Luciano Sampaio
February 8th, 2008 at 11:22 am
I found your post very informative, thanks for the update on Javascript. Between you and the other blogs I am reading, I am really becoming smarter…
February 13th, 2008 at 1:17 pm
David, Thanks for you comment!! I’ll do my BEST to keep doing good articles!!
March 15th, 2008 at 2:15 pm
Nice tutorials, keep up the good work!