I was and maybe am still a bit unsure of what you are proposing.

I think everyone is in agreement that it would be a good idea to have a
TurbineException which could/should be used in cases where Turbine is
generating an exception e.g.

if (someCondition) throw TurbineException;

The second issue is whether any exception thrown during the execution of
Turbine and is caught by the Turbine servlet should get wrapped into a
TurbineException.  I do not see a problem with this, since the Turbine
servlet is already catching all exceptions.  If you think this would
facilitate debugging, I guess I would say, try it.

A third possibility is trying to have the various components in Turbine wrap
exceptions into TurbineExceptions.  If you are proposing this, it would seem
you need to make a better case for it.

John McNally


----- Original Message -----
From: Kevin A. Burton <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Tuesday, March 14, 2000 3:46 PM
Subject: Re: Throwing "Exception" from within


> [EMAIL PROTECTED] wrote:
> >
> > I agree with Frank and John. I also agree with John that this is a pain
in
> > the ass to go back and implement since it will change so much code. So,
my
> > vote is that Kevin has the itch, so he should scratch it. ;-)
Personally,
> > I don't feel that it is that hard to read the output of
printStackTrace()
> > to find the location of the problem.
>
> That isn't really the issue.  The issue is something like
>
> try {
>  file://do something with Turbine
>  file://do something with JDBC
>
>  file://call your own API that uses both Turbine and JDBC
>
> } catch (TurbineException e) {
>   file://handle turbine problems
> } catch (SQLException e) {
>   file://handle SQLExceptions
> }
>
> ...
>
> Kevin
>
> --
> Kevin A Burton ([EMAIL PROTECTED])
> http://relativity.yi.org
> Message to SUN:  "Open Source Java!"
> "For evil to win is for good men to do nothing."
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to