ColdFusion 9.0 Resources |
cffinallyDescriptionUsed inside a cftry tag. Code in the cffinally block is processed after the main cftry code and, if an exception occurs, the cfcatch code. The cffinally block code always executes, whether or not there is an exception. Syntax<cftry> try code <cfcatch> catch code <cfcatch> ... <cffinally> final code </cffinally> </cftry> See alsocftry, cfcatch, cferror, cfrethrow, cfthrow, onError; Handling Errors in the Developing ColdFusion Applications UsageThe cffinally tag is optional in a cftry block, and the block can have only one cffinally tag. Put the cffinally tag at the end of all cftry block, after any cfcatch blocks. This tag requires an end tag. You can nest cftry/cfcatch/cffinally blocks. Use the cffinally tag for code that should execute whether or not an exception occurs. For example, use it to free up resources. |