Answering my own question, I see that <cfa_siteElementGet> throws errors
with <cfa_throw bAbort=1 ...>, so <cfcatch> never gets the chance to
trap the error.  I guess I modify the Spectra tag now...

Bob

> -----Original Message-----
> From: Robert Zimbinski 
> Sent: Wednesday, November 14, 2001 12: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,
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
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.

Reply via email to