CFCATCH
For use within the CFTRY tag, allowing you to catch one of more different exceptions
Usage
<cfcatch> ... </cfcatch>
Attributes
Attribute | default | required | summary |
---|---|---|---|
TYPE | Any | The type of exception to catch for |
Extra
<cftry> <!--- This will cause an error ---> <cfset a = variableDoesNotExist> <cfcatch type="application"> <!--- Enters here upon application error ---> <cfdump var="#cfcatch#"> </cfcatch> <cfcatch type="any"> <!--- Enters here upon any other error ---> <cfdump var="#cfcatch#"> </cfcatch> </cftry>