commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Delagrange <mdela...@yahoo.com>
Subject Re: [jelly] JellyTagException vs JellyException
Date Thu, 30 Jan 2003 05:44:07 GMT
I'm not sure to which method you guys are referring. 
findAncestorWithClass(Class) is a method of TagSupport
and does not throw JellyException.  In fact, it throws
no exception at all and had done so for at least 19
versions:

 
http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/TagSupport.java?annotate=1.25

- Morgan

P.S. Bob, the werkflow patch I supplied repaired the
HEAD version of the CVS repository documented on the
site:

  http://werkflow.werken.com/cvs.html

I'd prefer if you use the patch I prepared, if
possible.  You did ask for volunteers.

--- dion@multitask.com.au wrote:
> I'm +1 on this.
> --
> dIon Gillard, Multitask Consulting
> Blog:     
> http://www.freeroller.net/page/dion/Weblog
> Work:      http://www.multitask.com.au
> 
> 
> bob mcwhirter <bob@werken.com> wrote on 30/01/2003
> 04:28:44 PM:
> 
> > 
> > Howdy--
> > 
> > Hand-migrating werkflow since I need to learn the
> new API and also
> > since there's 3 werkflow codelines, and I'm not
> certain right off hand
> > which one Morgan sent patches for. :)
> > 
> > Anyhow, found this annoyance:
> > 
> > public void doTag(XMLOutput out)
> >   throws JellyTagException
> > {
> >   try
> >   {
> >     SomeTag tag = (SomeTag) findAncestorWithClass(
> SomeTag.class );
> >   }
> >   catch (JellyException e)
> >   {
> >     throw new JellyTagException( e );
> >   }
> > }
> > 
> > Previously, I didn't have to catch a jelly
> exception to simply wrap
> > in another jelly exception and re-throw it. 
> > 
> > At the bare minimum, can we have
> findAncestorWithClass(..) puke a
> > JellyTagException, since it is a tag-based
> exception?
> > 
> >    -bob
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> commons-dev-help@jakarta.apache.org
> > 
> 
> > ForwardSourceID:NT000AAC02 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-dev-help@jakarta.apache.org
> 


=====
Morgan Delagrange
http://jakarta.apache.org/taglibs
http://jakarta.apache.org/commons
http://axion.tigris.org
http://jakarta.apache.org/watchdog

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message