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

9. Error and Exception Handling

Chapter 9. Error and Exception Handling

Structured exception handling lets you gracefully catch and handle exceptions that occur in your ColdFusion applications. Exceptions can include anything from a page timeout or a missing file to a database error or a problem with an external object. Using the techniques discussed in this chapter, you can build extremely robust exception-handling capabilities into your ColdFusion applications.

There are a number of different levels at which you can handle exceptions and errors in a ColdFusion application. At the most basic level, you can use the cftry and cfcatch tags in a template, to test for and trap exceptions right where they occur. With the cfthrow tag, you can also define, throw, and catch custom exceptions in your application.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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