RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
M > To: CF-Talk > Subject: Re: Throwing exceptions from CFCs > > > Raymond, > > I still think we're not quite on the same level here. That or > my MX is > acting weird. I do indeed get the context, but it still comes > from the > , not the Throw() function

RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
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 exc

Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Raymond, I still think we're not quite on the same level here. That or my MX is acting weird. I do indeed get the context, but it still comes from the , not the Throw() function. Try the following component and just call test() without any exception handling around it:

Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
er 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 Mes

RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
Message- > From: Oliver Tupman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 9:27 AM > To: CF-Talk > Subject: Re: Throwing exceptions from CFCs > > > Raymond Camden wrote: > > > Ah, so you need to know _who_ called your method in the > incorrect

Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
upman [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, July 23, 2003 9:15 AM >>To: CF-Talk >>Subject: Re: Throwing exceptions from CFCs >> >> >>Raymond Camden wrote: >> >> >>>Query - in what way do you need the exceptioncontext? If the error >&

RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
To: CF-Talk > Subject: RE: Throwing exceptions from CFCs > > > Ah, so you need to know _who_ called your method in the > incorrect way, right? > > == > == > === > Raymond Camden, ColdFusion Jedi Maste

RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
15 AM > To: CF-Talk > Subject: Re: Throwing exceptions from CFCs > > > 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 > > > > > > Yes I cou

Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
uot;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 >> >>

RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
IL 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 > >

Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
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 cf

RE: Throwing exceptions from CFCs

2003-07-23 Thread Raymond Camden
> 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? === R

Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Hi all, I'm writing a whole bunch of CFCs for our company Intranet and I've come up on this problem time and time again: I code a lot of my CFCs in near-pure CFScript. For some reason in CFMX, Macromedia have provided us with the try and catch statements, but not a throw statement/function. A