Parse errors are not caught with cftry/cfcatch. Reason being, the page couldn't compile, so it couldn't even try/catch anything.
-nathan strutz http://www.dopefly.com/ Micha Schopman wrote: > I have errors which slip through ctry tags. The provided cfcatch part is not > executed and the source shows the error in the cftry part. Did anyone > experience similair behavior? I provided the responsible code below where > session.cultureid has not been filled in; > > > > <cftry> > > <cfoutput> > > <tree > > label="Articles in > (#evaluate("session.configuration.root.articles.culture_" & > session.cultureid)#)" > > > src="object.cfm?object=article&template=treenodes&parentid=#evaluate > ("session.configuration.root.articles.culture_" & session.cultureid)#" > > icon="styles/blue/gfx/domain.gif" > > iconopen="styles/blue/gfx/domain.gif" > > > instanceid="#evaluate("session.configuration.root.articles.culture_" & > session.cultureid)#" > > joininstanceid="#session.culturejoininstanceid#" > > objecttype="2" > > objectname="shared" > > basedir="core.domain" > > onloadevent="this.expand()" > > /> > > </cfoutput> > > > > <cfcatch type="any"> > > <cfoutput> > > <tree > > label="error:#xmlFormat(cfcatch.message)#" > > <cfloop collection="#cfcatch#" > item="cfcatchAttribute"> > > <cfif isSimpleValue(cfcatch[cfcatchAttribute])> > > > #cfcatchAttribute#="#xmlFormat(cfcatch[cfcatchAttribute])#" > > <cfelseif isArray(cfcatch[cfcatchAttribute])> > > <cfloop from="1" > to="#ArrayLen(cfcatch[cfcatchAttribute])#" index="i"> > > <cfif > isStruct(cfcatch[cfcatchAttribute][i])> > > <cfloop > collection="#cfcatch[cfcatchAttribute][i]#" item="cfcatchSubAttribute"> > > > #cfcatchAttribute#_#i#_#cfcatchSubAttribute#="#xmlFormat(cfcatch[cfcatchAttr > ibute][i][cfcatchSubAttribute])#" > > </cfloop> > > <cfelseif > isSimpleValue(cfcatch[cfcatchAttribute][i])> > > > #cfcatchAttribute#_#i#="#xmlFormat(cfcatch[cfcatchAttribute][i])#" > > </cfif> > > </cfloop> > > </cfif> > > </cfloop> > > icon="styles/blue/gfx/error.gif" > > iconopen="styles/blue/gfx/error.gif" > > iserror="true" > > onloadevent="new function(){alert('show skinned > error dialog here')}"/> > > </cfoutput> > > </cfcatch> > > </cftry> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195514 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

