View comments | RSS feed
Contents > Developing ColdFusion MX Applications > Extending ColdFusion Pages with CFML Scripting > Handling exceptions PreviousNext

Handling exceptions

ColdFusion provides two statements for exception handling in CFScript: try and catch. These statements are equivalent to the CFML cftry and cfcatch tags.

Note: This section does not explain exception-handling concepts. For a discussion of exception handling in ColdFusion, see Handling Errors.


Contents > Developing ColdFusion MX Applications > Extending ColdFusion Pages with CFML Scripting > Handling exceptions PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

Comments


Choopernickel said on Sep 2, 2003 at 10:53 AM :
This page, as it stands, does is completely devoid of value. There is no explanation as to the syntax of a try/catch statement in script, which is very different from one in CFML, and NOT "equivalent" to the try/catch tags.
jrunrandy said on Sep 2, 2003 at 10:52 AM :
Click the right arrow to see an example try/catch.

You might try the PDF docs to get a better view of the big picture (http://www.macromedia.com/support/coldfusion/documentation.html).
campem said on Apr 2, 2004 at 1:23 PM :
It would have been usefull to add the throw() statement to error-handling in cfscript. Since try/catch are available why not the other error-handling features or regular CFML?

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/cfscri26.htm