DocumentCode
1040524
Title
Hidden truth behind .NET´s exception handling today
Author
Cabral, B. ; Sacramento, P. ; Marques, P.
Author_Institution
Dept. of Eng. Inf., Univ. of Coimbra, Coimbra
Volume
1
Issue
6
fYear
2007
fDate
12/1/2007 12:00:00 AM
Firstpage
233
Lastpage
250
Abstract
The emergence of exception handling (EH) mechanisms in modern programming languages made available a different way of communicating errors between procedures. For years, programmers trusted in correct documentation of error codes returned by procedures to correctly handle erroneous situations. Now, they have to focus on the documentation of exceptions for the same effect. But to what extent can exception documentation be trusted? Moreover, is there enough documentation for exceptions? And in what way do these questions relate to the discussion on checked against unchecked exceptions? For a given set of Microsoft .NET applications, code and documentation were thoroughly parsed and compared. This showed that exception documentation tends to be scarce. In particular, it showed that 90% of exceptions are undocumented. Furthermore, programmers were demonstrated to be keener to document exceptions they explicitly throw while typically leaving exceptions resulting from method calls undocumented. This conclusion lead to another question: how do programmers use the EH mechanisms available in modern programming languages? More than 16 different .NET applications were examined in order to provide an answer. The major conclusion of this work is that exceptions are not being correctly used as an error-handling mechanism. These results contribute to the assessment of the effectiveness of the unchecked exceptions approach.
Keywords
exception handling; network operating systems; object-oriented languages; object-oriented programming; system documentation; Microsoft .NET exception handling; exception documentation; object oriented programming languages;
fLanguage
English
Journal_Title
Software, IET
Publisher
iet
ISSN
1751-8806
Type
jour
DOI
10.1049/iet-sen:20070017
Filename
4435103
Link To Document