PS: I'm against adding features to the 1.x codeline that the 2.x
codeline "won't need" -- that just makes the migration that much
trickier. At this point, anything added to 1.x should be added to 2.x,
unless of course it already exists in 2.x

-Pat

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Joseph Ottinger
Sent: Tuesday, November 04, 2003 6:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Re: Change in exception handling suggestion

I've still been mulling this over, despite the humour here, and I still
think that this exception handling thing is a Good Idea.

WW2/XW wouldn't need it, because the interceptors presumably would serve
the same role, but WW1 users tend to have a certain, very similar
approach
to handling this kind of thing, and the tendency for similar approaches
is
why I think the framework *should* standardize it. So far, I, Mr. Cook,
and a few WW converts here use the same kind of solution (arrived at
independently, as far as I know); any others? What other kinds of
patterns
are used for this kind of thing, outside of letting it bubble up to the
caller?

On Mon, 3 Nov 2003, Hani Suleiman wrote:

> ExceptionAware!
>
> Chris Nokleberg wrote:
>
> > Joseph Ottinger wrote:
> >
> >
> >>What I'd thought of was adding an extra method to Action and
> >>ActionSupport. The Action method's signature might look like this:
> >>
> >>public String handleException(Throwable t) throws Throwable;
> >>
> >>The ActionSupport implementation:
> >>
> >>public String handleException(Throwable t) throws Throwable {
> >>throw t;
> >>}
> >
> >
> > I like it, but I would make it an interface:
> >   public interface ExceptionHandler extends Action {
> >       String handleException(Throwable t);
> >   }
> >
> > and then have an interceptor which will catch the exception and do
the right
> > thing if the action instanceof ExceptionHandler.
> >
> > Chris
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?   SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>

-------------------------------------------------------------------
Joseph B. Ottinger                         http://enigmastation.com
IT Consultant                                [EMAIL PROTECTED]
J2EE Editor - Java Developer's Journal   [EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to