Exception Handling

  • Carsten Thomsen


Any application needs to handle errors that occur at runtime. Unfortunately it can be difficult to resolve all the possible errors that can occur. However, it’s always a good idea to try to create code that can resolve or foresee most events and exceptions, so that the user doesn’t have to worry about them. You should then attempt to catch the rest of them and display an error message with detailed information to the user about how to continue from this point. The overall purpose of exception handlers is to allow the application to gracefully recover from things going awry. This is especially important when dealing with relational databases. Because you are passing through multiple layers of technology, there are many places that an application can break. Although this chapter is about handling data-related exceptions, I’ll cover the basics for handling all kinds of exceptions briefly.


Exception Handler Database Program Release Version Catch Statement Fault Handler 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Carsten Thomsen 2002

Authors and Affiliations

  • Carsten Thomsen

There are no affiliations available

Personalised recommendations