Sunday, October 25, 2009

Hour 13. Working with .NET Error Handling and Diagnostics








 

 



Hour 13. Working with .NET Error Handling and Diagnostics


When you write managed C++ applications with the .NET Framework, error handling is managed by a set of .NET classes. The syntax for exception handling is similar to unmanaged C++. However, the .NET Framework provides a rich set of classes to provide strong exception handling and diagnostic capabilities.



In this hour's lesson, you will learn how to use the .NET Framework's error handling and diagnostics to build applications that handle errors gracefully. Also, for when an unexpected error does occur, you will learn how to display debugging information that will help track down the error.


In this hour you will:



  • Add structured exception handling to an application


  • Add trace statements to an application


  • Use assertion code to test for valid values


  • Display a stack dump when an error occurs


  • Create a custom exception error class













 

 





Top

No comments: