Raymond Camden wrote: > Query - in what way do you need the exceptioncontext? If the error > involves method foo and arg X, couldn't you just do > > <cfthrow message="You passed X to method Goo. X needs to be over > whatever." type="mycfc">
Yes I could, but that is not my primary problem. the primary problem is the exception context - the file/line number list you get when there is an error/exception. It's this context that I think Cold Fusion uses to display the file/linenumber stack trace and the 4/5 line outtake from the code where the error/exception took place. > ======================================================================== > === > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > (www.mindseye.com) > Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > > Email : [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > >>-----Original Message----- >>From: Oliver Tupman [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, July 23, 2003 8:42 AM >>To: CF-Talk >>Subject: Re: Throwing exceptions from CFCs >> >> >>Raymond Camden wrote: >> >>>>The questions are >>>>a) how do I either modify a thrown exception that I wish to >>>>rethrow (but >>>>with extra data) >>> >>> >>>Why not make your throw method take the relevent args, message, >>>detail, etc so you can pass them in? >> >>Yeah, I thought of that. The problem is that cfthrow's >>attributes do not >>allow you to pass the exception context unless you pass an object, >>unfortunately I can't seem to create an object to pass to it. I'm >>thinking it's some sort of Java exception object but I don't >>seem to see >>which methods will suit my purposes. >> >> >>====================================================================== >> >>>== >>>=== >>>Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc >>>(www.mindseye.com) >>>Member of Team Macromedia >> >>(http://www.macromedia.com/go/teammacromedia) >> >>>Email : >> >>[EMAIL PROTECTED] >> >>>Blog : www.camdenfamily.com/morpheus/blog >>>Yahoo IM : morpheus >>> >>>"My ally is the Force, and a powerful ally it is." - Yoda >>> >>> >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4