Exceptions are classes that derive from System.Exception . However, the .NET framework distinguishes between two types of exceptions: system exceptions, exceptions Microsoft defined that have to do with the .NET Framework; and application exceptions, custom exceptions for a particular application. System exceptions derive from System.SystemException . Application exceptions derive from the class System.ApplicationException . Both System.SystemException and System.ApplicationException derive from System.Exception . To declare an exception class:
Tips
|