Exceptions: The Missing Link Arrives for Java

In Version 1.4 of the Java 2 SDK, the Exception framework provides you with the missing link between lower layer and higher layer exceptions. We look at the implications for the conscientious developer.

provided by: 
Originally published at Internet.com


A robust program is one that is aware of potential pitfalls and has ways and means to recover from them. These pitfalls could be some boundary condition, like 'array boundaries', 'negative age', 'uninitialized objects', etc., or could be some conditions beyond the control of the programmer, like 'requested file not found', 'database failed to execute a SQL query', and so forth.

Fortunately, Java provides a very clean object-oriented framework for exception management and thus simplifies, almost standardizes, the chores of a programmer. New features have been added to the Exceptions Framework in Version 1.4 of the Java 2 SDK that will make it even more useful and powerful.

A Quick Refresher



In order to understand the concepts introduced in this article, it will be worthwhile to spend some time in reviewing the basics of exception management.

To Handle or to Throw Is the Question ...

Read article at Internet.com site
Regional Articles
- Exceptions: The Missing Link Arrives for Java Alabama
- Exceptions: The Missing Link Arrives for Java Alaska
- Exceptions: The Missing Link Arrives for Java Arizona
- Exceptions: The Missing Link Arrives for Java Arkansas
- Exceptions: The Missing Link Arrives for Java California
- Exceptions: The Missing Link Arrives for Java Colorado
- Exceptions: The Missing Link Arrives for Java Connecticut
- Exceptions: The Missing Link Arrives for Java DC
- Exceptions: The Missing Link Arrives for Java Delaware
- Exceptions: The Missing Link Arrives for Java Florida
- Exceptions: The Missing Link Arrives for Java Georgia
- Exceptions: The Missing Link Arrives for Java Hawaii
- Exceptions: The Missing Link Arrives for Java Idaho
- Exceptions: The Missing Link Arrives for Java Illinois
- Exceptions: The Missing Link Arrives for Java Indiana
- Exceptions: The Missing Link Arrives for Java Iowa
- Exceptions: The Missing Link Arrives for Java Kansas
- Exceptions: The Missing Link Arrives for Java Kentucky
- Exceptions: The Missing Link Arrives for Java Louisiana
- Exceptions: The Missing Link Arrives for Java Maine
- Exceptions: The Missing Link Arrives for Java Maryland
- Exceptions: The Missing Link Arrives for Java Massachusetts
- Exceptions: The Missing Link Arrives for Java Michigan
- Exceptions: The Missing Link Arrives for Java Minnesota
- Exceptions: The Missing Link Arrives for Java Mississippi
- Exceptions: The Missing Link Arrives for Java Missouri
- Exceptions: The Missing Link Arrives for Java Montana
- Exceptions: The Missing Link Arrives for Java Nebraska
- Exceptions: The Missing Link Arrives for Java Nevada
- Exceptions: The Missing Link Arrives for Java New Hampshire
- Exceptions: The Missing Link Arrives for Java New Jersey
- Exceptions: The Missing Link Arrives for Java New Mexico
- Exceptions: The Missing Link Arrives for Java New York
- Exceptions: The Missing Link Arrives for Java North Carolina
- Exceptions: The Missing Link Arrives for Java North Dakota
- Exceptions: The Missing Link Arrives for Java Ohio
- Exceptions: The Missing Link Arrives for Java Oklahoma
- Exceptions: The Missing Link Arrives for Java Oregon
- Exceptions: The Missing Link Arrives for Java Pennsylvania
- Exceptions: The Missing Link Arrives for Java Rhode Island
- Exceptions: The Missing Link Arrives for Java South Carolina
- Exceptions: The Missing Link Arrives for Java South Dakota
- Exceptions: The Missing Link Arrives for Java Tennessee
- Exceptions: The Missing Link Arrives for Java Texas
- Exceptions: The Missing Link Arrives for Java Utah
- Exceptions: The Missing Link Arrives for Java Vermont
- Exceptions: The Missing Link Arrives for Java Virginia
- Exceptions: The Missing Link Arrives for Java Washington
- Exceptions: The Missing Link Arrives for Java West Virginia
- Exceptions: The Missing Link Arrives for Java Wisconsin
- Exceptions: The Missing Link Arrives for Java Wyoming

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML