cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: [RT]: InputModules interfaces
Date Tue, 08 Oct 2002 07:42:18 GMT
Carsten Ziegeler wrote:

>So, summarizing this, it seems that we agree on changing the InputModule
>interface to
>
>o.a.c.components.modules.InputModule
>{
>   Object getAttribute( String name, Map objectModel ) throws
>ProcessingException;
>
>   Iterator getAttributeNames( Map objectModel ) throws ProcessingException;
>
>   Object[] getAttributeValues( String name, Map objectModel ) throws
>ProcessingException;
>}
>
>Everyone happy with this?
>  
>

It looks simpler.

But why throwing a ProcessingException ? Simply throwing Exception would 
avoid exception cascading (I hate these never ending stacktraces) and 
better cope with the variety of implementations.

Sylvain

-- 
Sylvain Wallez
  Anyware Technologies                  Apache Cocoon
  http://www.anyware-tech.com           mailto:sylvain@apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message