Used with one or more CFCATCH tags, the CFTRY tag allows developers to catch and process exceptions in ColdFusion pages. Exceptions include any event that disrupts the normal flow of instructions in a ColdFusion page such as failed database operations, missing include files, and developer-specified events.
<CFTRY> … Add code here <CFCATCH TYPE="exceptiontype"> … Add exception processing code here </CFCATCH> … Additional CFCATCH blocks go here </CFTRY>
Optional. Specifies the type of exception to be handled by the CFCATCH block:
You must code at least one CFCATCH tag within a CFTRY block. Code CFCATCH tags ...