Any reason you can't just do this? 

<cftry>

<cffile action=....>

<cfquery name=...>
DE DO DO DO< DE DA DA DA
</cfquery>

<cfcatch type=any></cfcatch>
</cftry>


 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 10:23 PM
To: CF-Talk
Subject: Using try/catch all over the place a good thing?

I'm wrapping some cftry/catchs around my cffiles and cfquerys. It works
pretty sweet if I use just an empty catch. 

Is it ok practice to wrap EVERYTHING with these? I like the empty catch
cause it just drops you right back on the page with no errors. I can see a
problem though where the cffile might work, then the query fails but you
don't know it. 

<cftry>
<cffile action=....>
<cfcatch type=any></cfcatch>
</cftry>

<cftry>
<cfquery name=...>
DE DO DO DO< DE DA DA DA
</cfquery>
<cfcatch type=database></cfcatch>
</cftry>

Thanks,
Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221430
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

Reply via email to