• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Error and Exception Handling > 9.4. Error Handling Within the Web-Applicatio...

Error Handling Within the Web-Application Framework

While cftry and cfcatch provide a granular means of handling errors and exceptions within your applications, they can be cumbersome to code. Trying to identify all the potential trouble spots in your applications where cftry/cfcatch code should be placed only compounds the problem. Fortunately, ColdFusion provides a way to handle errors at a more general level. By including ColdFusion’s cferror tag within your application’s Application.cfm template, you can implement application-specific “catch all” error handlers.

Although the cferror tag can be used in other templates besides Application.cfm, it makes the most sense to use it in this template. The cferror tag is generally placed directly below the cfapplication tag:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint