13.3. Examining System.Exception
Since System.Exception is an important class, I shall examine some of its methods and properties [10] that all other C# exception classes will inherit. Table 13.2 shows the public properties [11] of this class.
[10] If you are unsure about C# properties, just treat them as public class attributes which you can access. C# properties are different from C# fields. C# properties are not class attributes, but implemented like methods. See Chapter 20 for more information.
[11] Besides the public properties listed, there is one int property of protected accessibility called HResult. HResult represents the HRESULT value of an exception. HRESULT is a 32-bit integer with coded information on the severity (information, warning, ...
Get From Java to C#: A Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.