- In C#, exceptions are represented by classes.
- All exception classes must be derived from the built-in exception class System.Exception.
- SystemException class and ApplicationException class are derived from System.Exception.
- SystemException support exceptions generated by the C# runtime system (that is, the Common Language Runtime)
- ApplicationException support exceptions generated by application programs.
- SystemException and ApplicationException add nothing to Exception.
- SystemException and ApplicationException define the tops of two different exception hierarchies.
|