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 Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186790
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to