ColdFusion 9.0 Resources |
The cfrethrow tag syntaxThe following pseudocode shows how you can use the cfrethrow tag to create an error-handling hierarchy: <cftry> <cftry> Code that might throw a database error <cfcatch Type="Database"> <cfif Error is of type I can Handle> Handle it <cfelse> <cfrethrow> </cfif </cfcatch> </cftry> <cfcatch Type="Any"> General Error Handling code </cfcatch> </cftry> Although this example uses a Database error as an example, you can use any cfcatch type attribute in the innermost error type. Follow these rules when you use the cfrethrow tag:
|