Page 113 - DCAP312_WEB_TECHNOLOGIES_II
P. 113

Sarabjit Kumar, Lovely Professional University                                    Unit 6: Error Handling



                                   Unit 6: Error Handling                                         Notes



             CONTENTS

             Objectives
             Introduction
             6.1   Logics of Error Handling
                  6.1.1   Redirecting the User to an Error Page
                  6.1.2   Custom Error Handling in ASP.NET
             6.2   Aspects of Error Handling
             6.3   Levels of Error Handling
                  6.3.1   Local Error Handling
                  6.3.2   Page Level
                  6.3.3   Application Level
                  6.3.4   HTTP Module Level
             6.4   Web Application Error Handling in ASP.NET
                  6.4.1   The Problem

                  6.4.2   The Solution
                  6.4.3   Using the Page Error or on Error Sub
                  6.4.4   Using the Global.Asax File
                  6.4.5   Using the Web.Config File
             6.5   Error Handling in ASP.NET Web API
                  6.5.1  HttpError
                  6.5.2  HttpResponseException
                  6.5.3   Error Detail
                  6.5.4   Applying Error Handling to Handle Invalid Model States
             6.6  Summary
             6.7  Keywords
             6.8   Review Questions

             6.9   Further Readings
            Objectives


            After studying this unit, you will be able to:
               •  Define the logics of error handling
               •  Describe all aspects of error handling

               •  Explain the levels of error handling
               •  Define the web application error handling in ASP.NET

               •  Define error handling in ASP.NET web API




                                             LOVELY PROFESSIONAL UNIVERSITY                                   107
   108   109   110   111   112   113   114   115   116   117   118