Why not use the extendedInfo attribute of cfthrow? Note that you can modify many attributes. The type, the message, the detail, the error code, and extendedInfo. This gives you a wealth of crap you can customise.
Also, what's cool about using a Throw() method in a CFC is that you can hard code stuff. Ie, make the type ALWAYS be "nameofCFC", or make message always start with "Error from Foo.cfc: #message#". ======================================================================== === 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 9:48 AM > To: CF-Talk > Subject: Re: Throwing exceptions from CFCs > > > I noticed that too, while it may partly fulfill part (b) of > my original > post: > > >> b) how do I throw my own exceptions with an exception context? > > it does not fulfill part (a) > > >> a) how do I either modify a thrown exception that I wish > to rethrow > (but with extra data) > > I may of course be after too much, and expecting too much of > Cold Fusion > hence my idea that I may need to delve into Java. > > > Raymond Camden wrote: > > > When I do > > > > <cfset throw()> > > > > The tag context's first element line # _is_ the line number of the > > cfthrow in the throw method, however item 2 is is the method that > > called throw, and item 3 is the caller tag. This covers everything. > > > > I modified my cfc method to do this: > > > > <cffunction name="test"> > > > > <cfscript> > > throw("Test one"); > > </cfscript> > > > > <cfreturn now()> > > > > </cffunction> > > > > and -still- it worked correctly. Are you not seeing this? > > > > > ====================================================================== > > == > > === > > 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 9:27 AM > >>To: CF-Talk > >>Subject: Re: Throwing exceptions from CFCs > >> > > > -- > Oliver Tupman > Key Systems Geotechnical > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

