I make use of cferror in my application.cfm to catch everthing that goes
wrong with my app. If there is something wrong, it emails where it happened
along with all of the variables I need. The problem is in our shopping cart
this chunk of code is making cferror break. I don't know why, can anyone
shed any light on it. Once I take this piece of code out cferror catches the
errors, put it back in, it throws the error to the user. This is on CF5.


<cftry>
        <!--- Create array to populate structure from client variable --->
        <cfset pencilorder =  ArrayNew(1)>

        <!--- Get struture which was encoded with WDDX --->
        <cfwddx action="WDDX2CFML" input="#client.pencilorder#"
output="pencilorder">
        <cfcatch type="Any">
                <cfset error = "true">
                <cfset message = message & "<p>" & "*** Error getting your
order. ***">
                <cfthrow message="#cfcatch.message#<br>#cfcatch.detail#">
        </cfcatch>
</cftry>



Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to