<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-a10.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T18:37:59</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#39295" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#34626" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#26245" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#26120" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#25756" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#23170" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#23006" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#22700" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#18393" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#13032" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#11499" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#7544" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#1424" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#39295">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#39295</link>
		<description>It seems that if there is no gap between the CFCatch tags, the cffile tag is ignored:&lt;br /&gt;&lt;br /&gt;&lt;cftry&gt;		&lt;br /&gt;&lt;cffile action = &quot;delete&quot; file = &quot;#somefilename#&quot;&gt;&lt;br /&gt;&lt;cfcatch&gt;&lt;/cfcatch&gt;&lt;br /&gt;&lt;/cftry&gt;&lt;br /&gt;&lt;br /&gt;but if there is a space between &lt;cfcatch&gt; &lt;/cfcatch&gt;, the file deletion DOES work !</description>
		<dc:creator>Murrah</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-09T02:18:53</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#34626">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#34626</link>
		<description>It would be nice if one were able to do &lt;br /&gt;&lt;br /&gt;&lt;cfdump var=&quot;#cfcatch#&quot;&gt;</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-06T20:26:06</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#26245">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#26245</link>
		<description>Since the latest CFMX patch which I believe is dated August 25,2005 you no longer are able to do a CFDump of the CFCATCH object.  I've filed a bug report, but have yet to hear anything of it.</description>
		<dc:creator>mindtrap</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-01-06T06:51:51</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#26120">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#26120</link>
		<description>Missing information:&lt;br /&gt;&lt;br /&gt;Right after the first paragraph (in the section headed &quot;cfcatch&quot;), you need to say that, when an exception occurs,  a structure called &quot;cfcatch&quot; is produced (or &quot;returned&quot;,  or even better, &quot;springs into existence&quot;) and that said structure contains data related to the exception.  (You might also mention that, with nested &lt;cftry&gt; blocks, the cfcatch structures at each level are in separate namespaces, thus there will be no name collisions (I don't know if that's true, because you don't say, but it is absolutly essential to know).  You should immediately follow that with a high-level description of the structure (e.g., &quot;Most elements of the structure contain scalar values, but some elements contain structures or arrays&quot;). You should  then refer readers to the section below that describes the various elements of the structure. &lt;br /&gt;&lt;br /&gt;Ambiguous:&lt;br /&gt;&lt;br /&gt;In the section headed &quot;ColdFusion MX:&quot;, you say &quot;Changed object modification: you cannot modify the object returned by cfcatch.&quot;  This statement refers to something that you haven't mentioned yet.  It can be solved by  doing what I suggest above, and adding to that the use of the term &quot;object&quot;.&lt;br /&gt;&lt;br /&gt;Ambiguous:&lt;br /&gt;&lt;br /&gt;Just above the HTML table with headings &quot;catch variable&quot; and &quot;content&quot;, you say, &quot;The cfcatch variables provide the following exception information&quot;.  What cfcatch variables?  You have only implied their existence, you haven't described them yet.   By the way, should that have been written in plural number?  Are there several cfcatch variables or is there a single variable (object) with several fields?  (If you want to use the plural, then call them by their more-informative names: instance variables)  &lt;br /&gt;&lt;br /&gt;Incomplete:&lt;br /&gt;&lt;br /&gt;The table mentioned above does not indicate what type of data the &quot;variable&quot;  (or field) contains.  Please indicate whether it is scalar, array, or structure.  Although we can deduce, lacking any mention otherwise, that the data is scalar, it is good form for you to say that explicitly.  The one field where you indicate that it is an array, you don't go far enough.  You say that it is an array of structures which you don't describe.  We're back where we started.   Do you expect us to write some code to enumerate the fieldnames of this structure?  And, if you are tempted to reply, &quot;we show the fieldnames in the example&quot;, let me explain something:  an example is NOT the place to explain or present new information.  It is supposed to be an EXAMPLE of the information you presented.  By looking at the example, we can see that there are at least three fields in this structure, &quot;line&quot;, &quot;column&quot;, and &quot;template&quot;.  But we don't know if there are any others.  Is this a rigorous example?  We don't know.  Even if the use of all the fields is demonstrated in the example,  it is very difficult (not to mention annoying) to have to read the so-called example to find this information.  This is poor  practice.</description>
		<dc:creator>a440guy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-01-03T16:32:40</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#25756">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#25756</link>
		<description>You can use this code snippet to check for the ID key.&lt;br /&gt;&lt;cfloop index = i from = 1 to = #ArrayLen(cfcatch.tagContext)#&gt;&lt;br /&gt;   &lt;cfset sCurrent = #cfcatch.tagContext[i]#&gt;&lt;br /&gt;   &lt;BR&gt;#i# &lt;cfif StructKeyExists(sCurrent, &quot;ID&quot;)&gt; #sCurrent[&quot;ID&quot;]#&lt;/cfif&gt;(#sCurrent[&quot;LINE&quot;]#,#sCurrent[&quot;COLUMN&quot;]#)#sCurrent[&quot;TEMPLATE&quot;]#&lt;br /&gt;&lt;/cfloop&gt;</description>
		<dc:creator>myhale</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-22T14:04:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#23170">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#23170</link>
		<description>We have a cfcatch handler (also exception handler) that loops over the tagcontext and builds a similar string.  &lt;br /&gt;&lt;br /&gt;I just found that ID ( cfcatch.tagContext[i].ID) may not exist (like in syntax errors), and trying to output it will generate a java error (hashtable, IIRC).</description>
		<dc:creator>dlakein</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-29T11:41:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#23006">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#23006</link>
		<description>How about one for LDAP.</description>
		<dc:creator>N8iveTXn</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-27T07:47:07</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#22700">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#22700</link>
		<description>No screen name said on Aug 21, 2003 at 5:14 PM : &lt;br /&gt;Is there a support to capture faultCode for web services in cfcatch ? That would be very much useful &lt;br /&gt;-Narayan &lt;br /&gt;&lt;br /&gt;Same question here !&lt;br /&gt;I'm trying to catch possible errors on the Google Webservice using cftry/cfcatch but doesn't work, there should be a type=&quot;structure&quot; or something</description>
		<dc:creator>G0V.</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-21T05:17:55</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#18393">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#18393</link>
		<description>Why am I unable to pass cfcatch as a type struct into a function. I am having to copy the values into a new struct and pass that in. Why won't cffunction accept cfcatch as a struct then? It won't accept newVar if newVar=cfcatch. I have to get them out one by one ie; newVar.message = cfcatch.message, etc. then I can pass newVar to the function as a type struct. Am I missing something?</description>
		<dc:creator>webdev101</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-12T09:34:56</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#13032">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#13032</link>
		<description>&lt;cfdump var=&quot;#cfcatch.tagcontext#&quot;&gt; is simpler than your loop example.</description>
		<dc:creator>omniphiliac</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-16T14:51:12</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#11499">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#11499</link>
		<description>We are working to improve the examples in the ColdFusion reference pages. We propose to replace the current example on this page with the the following example. If you have any comments on this example, add them to this page.&lt;br /&gt;&lt;br /&gt;&lt;!--- cftry example, using TagContext to display the tag stack. ---&gt;&lt;br /&gt;&lt;h3&gt;cftry Example&lt;/h3&gt;&lt;br /&gt;&lt;!--- open a cftry block ---&gt;&lt;br /&gt;&lt;cftry&gt;&lt;br /&gt;   &lt;!--- note misspelled tablename &quot;employees&quot; as &quot;employeeas&quot; ---&gt;&lt;br /&gt;   &lt;cfquery name = &quot;TestQuery&quot; dataSource = &quot;cfsnippets&quot;&gt;&lt;br /&gt;      SELECT *&lt;br /&gt;      FROM EMPLOYEEAS&lt;br /&gt;   &lt;/cfquery&gt;&lt;br /&gt;&lt;br /&gt;   &lt;!--- &lt;p&gt;... other processing goes here ---&gt;&lt;br /&gt;   &lt;!--- specify the type of error for which we search ---&gt;&lt;br /&gt;   &lt;cfcatch type = &quot;Database&quot;&gt;&lt;br /&gt;   &lt;!--- the message to display ---&gt;&lt;br /&gt;      &lt;h3&gt;You've Thrown a Database &lt;b&gt;Error&lt;/b&gt;&lt;/h3&gt;&lt;br /&gt;      &lt;cfoutput&gt;&lt;br /&gt;         &lt;!--- and the diagnostic message from the ColdFusion server ---&gt;&lt;br /&gt;         &lt;p&gt;#cfcatch.message#&lt;/p&gt;&lt;br /&gt;         &lt;p&gt;Caught an exception, type = #CFCATCH.TYPE# &lt;/p&gt;&lt;br /&gt;         &lt;p&gt;The contents of the tag stack are:&lt;/p&gt;&lt;br /&gt;         &lt;cfloop index = i from = 1 &lt;br /&gt;               to = #ArrayLen(CFCATCH.TAGCONTEXT)#&gt;&lt;br /&gt;            &lt;cfset sCurrent = #CFCATCH.TAGCONTEXT[i]#&gt;&lt;br /&gt;			#sCurrent[&quot;ID&quot;]# #cfcatch.Message#&lt;br&gt;&lt;br /&gt;			Error Detail: #cfcatch.Detail#&lt;br&gt;&lt;br /&gt;			Line: #sCurrent[&quot;LINE&quot;]#&lt;br&gt;&lt;br /&gt;			Column: #sCurrent[&quot;COLUMN&quot;]#&lt;br&gt;&lt;br /&gt;			Template: #sCurrent[&quot;TEMPLATE&quot;]#&lt;br /&gt;            &lt;br /&gt;               &lt;br /&gt;               &lt;br /&gt;         &lt;/cfloop&gt;&lt;br /&gt;      &lt;/cfoutput&gt;&lt;br /&gt;   &lt;/cfcatch&gt;&lt;br /&gt;&lt;/cftry&gt;</description>
		<dc:creator>wlee</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-03-22T07:33:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#7544">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#7544</link>
		<description>To pass the CFCATCH variable to a UDF expecting a structure you have to duplicate() it.&lt;br /&gt;&lt;br /&gt;http://www.rewindlife.com/archives/000135.cfm</description>
		<dc:creator>_Sam_</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-02-07T11:49:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#1424">
		<title>coldfusion/6.1/htmldocs/tags-a10.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a10.htm#1424</link>
		<description>Is there a support to capture faultCode for web services in cfcatch ? That would be very much useful  &lt;br&gt;-Narayan</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-08-21T17:14:52</dc:date>
	</item>
	</rdf:RDF>

