Exception-handling tags
ColdFusion provides the exception-handling tags listed
in the following table:
Tag
|
Description
|
cftry
|
If any exceptions occur while processing
the tag body, look for a cfcatch tag that handles
the exception, and execute the code in the cfcatch tag
body.
|
cfcatch
|
Execute code in the body of this tag if
the exception caused by the code in the cftry tag
body matches the exception type specified in this tag’s attributes.
Used
in cftry tag bodies only.
|
cfthrow
|
Generate a user-specified exception.
|
cfrethrow
|
Exit the current cfcatch block
and generates a new exception of the same type.
Used only
in cfcatch tag bodies.
|