White Papers

Three Rules for Effective Exception Handling

Overview Exceptions in Java provide a consistent mechanism for identifying and responding to error conditions. Effective exception handling will make programs more robust and easier to debug. If one finds exceptions aren't answering all three questions, chances are they aren't being used effectively. Three rules will help to make the best use of exceptions when debugging the programs. These rules are: be specific, throw early, and catch late. To illustrate these rules of effective exception handling, this paper discusses a fictional personal finance manager called JCheckbook. JCheckbook can be used to record and track bank account activity, such as deposits, withdrawals, and checks written.

Further White Paper Details
PublisherSun Microsystems File FormatHTML
Date PublishedDecember 2003 Downloads25
FormatWhite Papers   
Topics
    N/A
Thin clients switch on digitally excluded

Thin clients switch on digitally excluded

Case study: Digital inclusion project tackles social exclusion in Liverpool more

Renault goes multilingual

Renault goes multilingual

Case study: Translation tech turns docs into 23 languages… more


Quick Sitemap Links: