Free mag vol1 | Page 319

CHAPTER 7  UNDERSTANDING STRUCTURED EXCEPTION HANDLING Message This read-only property returns the textual description of a given error. The error message itself is set as a constructor parameter. Source This property gets or sets the name of the assembly, or the object, that threw the current exception. StackTrace This read-only property contains a string that identifies the sequence of calls that triggered the exception. As you might guess, this property is very useful during debugging or if you wish to dump the error to an external error log. TargetSite This read-only property returns a MethodBase object, which describes numerous details about the method that threw the ex