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

Part V: Appendixes > <CFTRY>, <CFCATCH>, </CFCATCH>, </CFTRY>

<CFTRY>, <CFCATCH>, </CFCATCH>, </CFTRY>

Description: <CFTRY> is used to catch exceptions thrown by ColdFusion or explicitly with <CFTHROW>. All code between <CFTRY> and </CFTRY> can throw exceptions. Exceptions are caught by <CFCATCH> blocks. Explicit <CFCATCH> blocks may be created for different error types, or one block can catch all errors. <CFCATCH> attributes are listed in Table A.80.

Syntax:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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