<cfcatch>

Used only inside a cftry, the cfcatch tag catches and process exceptions. By specifying the type of error with the type attribute, different types of exceptions can be handled differently.

This tag must have a body.

This tag is also supported within <cfscript>

Attribute Description
name
string, optional

name for variable, by default it is cfcatch

type
string, optional

Type of catch, default:Any

<cfcatch
    [name=string]
    [type=string]
><!--- body ---></cfcatch>

Examples

There are currently no examples for this tag.

See also