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

Chapter 9. Error Handling > Try/Catch/Throw Routines

Try/Catch/Throw Routines

Within CFML, you have tags specifically designed to enable you to handle errors and to continue processing your application pages. The try/catch block is one way in which you might choose to handle an error generated within one of your ColdFusion templates. You would use try/catch blocks anywhere within your application where an error from which you could recover might occur.

Before we begin with an example of how you would use this functionality in a real-world application, let’s take a quick look at the types of error handling tags available within ColdFusion MX (see Table 9.1).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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