ASP.NET Basics Part 10: Making Exceptions
(Page 1 of 12 )

It's been a long, hard journey, but you're finally an ASP.NET Programmer. Before you head out on your own, though, there's one last lesson you need to learn - what to do when things go wrong. In this final installment of our introductory tutorial, learn all about ASP.NET exceptions and how to write code that traps and resolves them. This action could be something as simple as displaying an error message, or as complex as heating your computer's innards until they burst into flame. (Just kidding!)
Burning Up
No programmer, no matter how good (s)he is, writes bug-free code all the time. And so, most programming languages come with built-in capabilities to catch errors and take remedial action. This action could be something as simple as displaying an error message, or as complex as heating your computer's innards until they burst into flame. (Just kidding!)
ASP.NET is no different. The language comes with fairly sophisticated exception-handling hooks, equivalent to what you would find in Java or Python. And over the next few pages, I'm going to demonstrate them by deliberately introducing errors into my ASP.NET scripts and then using the built-in exception handlers to catch and resolve them in an efficient and effective manner. So come on in! This is the last episode of this particular tutorial, and you don't want to miss what's coming up!
Next: Word Games >>
More ASP.NET Articles
More By Harish Kamath (c) Melonfire