background image

Content 2

<< Content 1 | 1. Getting Ready >>
<< Content 1 | 1. Getting Ready >>
6.13 Sample Application: OOPS ..................................................................... 170
7. Error and Exception Handling............................................................... 172
7.1 Need for Error Handling........................................................................... 172
7.2 Old-school unstructured exception handling in VB 6.0 and its disadvantages.. 173
7.3 Structured Exception Handling in C#/VB.NET ............................................. 174
7.4 System.Exception: The mother of all exceptions ......................................... 177
7.5 Handling exceptions that are not System.Exception compliant...................... 190
Catch.......................................................................................................... 191
7.6 Understanding Application exceptions (user-defined or custom exceptions).... 191
7.7 Nesting try/catch/finally blocks and re-throwing exceptions ......................... 198
7.8 Parting thoughts...................................................................................... 211
8. Assemblies and Application Domains ................................................... 212
8.1 Introduction........................................................................................... 212
8.2 Assembly Types...................................................................................... 212
8.3 Private Assemblies.................................................................................. 217
8.4 Shared Assemblies.................................................................................. 217
8.5 Application Domains................................................................................ 218
8.6
Conclusion ............................................................................................. 223