O'Reilly logo

From Java to C#: A Developer's Guide by Heng Ngee Mok

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required