Chapter 5. Error Handling for the User Interface

Chapter 5. Error Handling for the User Interface

Terms you'll need to understand:

  • Application.Error event

  • Custom error pages

  • Custom exceptions

  • Exception

  • Page.Error event

  • The catch block

  • The finally block

  • The throw statement

  • The try block

  • Unhandled exceptions

Techniques you'll need to master:

  • Knowing how to handle exceptions using the try - catch - finally blocks

  • Knowing how to create custom exception classes and custom error messages; learn to implement them in a program

  • Knowing how to configure custom error pages in the web.config file

  • Experimenting with code that performs error handling at the Page_Error() or Application_Error() event handlers

Exception handling helps you in creating robust applications. Fortunately, exception handling is an integral part of the .NET Framework. The framework classes, as well as user-defined classes, throw exception objects to indicate unexpected problems in the code. In this chapter, you will learn how to handle exceptions in ASP.NET Web applications.



MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)
MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)
ISBN: 789729016
EAN: N/A
Year: 2005
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net