Looks okay to me. The next thing I'd do is put <cfdump var="#cferror#"> in the 
exception handling template to see the cferror scope variables - maybe 
something's not exactly as you expect (and you might check the cfcatch scope, 
too).

Chris Norloff


---------- Original Message ----------------------------------
From: David Collie <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 9 Dec 2004 13:18:52 +0000

>Hi all
>
>I can't get this to work and I've tried livedocs but I don't see
>anything that says that I shouldn't be able to do this
>
><!--- cferrror --->
><cferror type="exception" exception="com.whatever"
>template="error_comwhatever.cfm">
><cferror type="exception" exception="com.whatever.validation"
>template="error_comwhatever.cfm">
>
>
><!--- try 1: goes to error_comehatevervalidation.cfm --->
><cfthrow type="com.whatever" message="this is the 'com.whatever' error 
>calling">
>
><!--- try 2: goes to error_comehatevervalidation.cfm --->
><cfthrow type="com.whatever.validation" message="this is the
>'com.whatever.validation' error calling">
>
>
>When I change the order of the cferror's and cfthrow's, it just seems
>to default to the last cferror tag regardless.
>I can get the CF exceptions  (database, missinginclude, etc) to work
>no bother just throwing them in the template but not the custom
>ones...
>
>Note that I can get the custom exceptions to work when wrapped in
>cftry/cfcatch but can you not use a custom cfthrow outwith the
>cftry/cfcatch and trap it with cferror?
>
>Any pointers appreciated.  Am I totally on the wrong track?
>
>-- 
>dc
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

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