• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

cftry

Synopsis

<cftry>
CFML
<cfcatch type="exception_type">
HTML and CFML
</cfcatch>
   
<cfcatch type="exception_type">
HTML and CFML
</cfcatch>
...
</cftry>

Traps and processes predefined and developer-specified exceptions within ColdFusion templates. The cftry/cfcatch tags allow you to handle exceptions in your templates gracefully, without having to abort processing. Exceptions occurring within cfcatch blocks can’t be handled by the same cftry block governing the cfcatch block. At least one cfcatch block must be nested within a cftry block. cfcatch tags are processed in the order in which they are coded within a template.

Attributes

type=" exception_type

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint