it's b/c <cfa_siteElementGet> is calling <cfa_throw> which is catching it's own error and calling <cfa_showerror>. in other words, your <cfcatch> is rendered useless. you could add a <cfrethrow> tag to line 92 in cfa_throw.cfm. that would throw the error back up for you to catch.
just a thought. phillip -----Original Message----- From: Robert Zimbinski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:25 PM To: Spectra-Talk Subject: <cftry> doesn't catch Spectra tag errors? Can someone help me understand why the following code doesn't work? If cfa_siteElementGet is asked to get an elementID that doesn't exist, I want to protect the user from an ugly error message. Trouble is, <cftry> and <cfcatch> seem not to work here. Should I be doing this another way? <cftry> <cfa_siteElementGet datasource="#request.cfa.objectstore.dsn#" elementID="Not A Valid Element ID" r_stElement="stElement"> <cfcatch type="ANY"> <cfa_dump var="#cfcatch#"> </cfcatch> </cftry> thanks, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
