Configuring the State of an Exception
Currently, the System.Exception object configured within the Accelerate() method simply estab-
lishes a value exposed to the Message property (via a constructor parameter). As shown previously in
Table 7-1, however, the Exception class also supplies a number of additional members (TargetSite,
StackTrace, HelpLink, and Data) that can be useful in further qualifying the nature of the problem.
To spruce up our current example, let’s examine further details of these members on a case-by-case
basis.
C H A P T E R 7
■
U N D E R S TA N D I N G S T R U C T U R E D E X C E P T I O N H A N D L I N G
226
8849CH07.qxd 10/1/07 10:38 AM Page 226
Do'stlaringiz bilan baham: |