Andy, I'm not sure this is what you are looking for, but I've done some pretty robust error trapping using this type of logic:
<cftry> <cfscript> message = ""; errors = 0; if ( NOT IsDefined('foo') ) { message = "You must define foo"; errors = 1; } </cfscript> <cfif errors EQ 1 > <cfthrow message="#message#" type="goBack"> </cfif> <cfcatch type="goBack"> <cfinclude template="[path]/errGoBack.cfm"> </cfcatch> <cfcatch type="Any"> <cfinclude template="[path]/errAny.cfm"> </cfcatch> </cftry> >Bryan, >This is not the same code. All you are doing is returning from a function >call. You are NOT throwing an exception within test. > >Andy > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137338 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com