cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject NotImplementedException vs UnsupportedOperationException
Date Fri, 30 Sep 2005 13:55:49 GMT
bloritsch@apache.org wrote:
> Author: bloritsch
> Date: Fri Sep 30 06:45:54 2005
> New Revision: 292732
> 
> URL: http://svn.apache.org/viewcvs?rev=292732&view=rev
> Log:
> use NotImplementedException for methods without an implementation
> 

> -        throw new RuntimeException (getClass().getName() + ".getLocales() method not
yet implemented!");
> +        throw new NotImplementedException (getClass().getName() + ".getLocales() method
not yet implemented!");
>      }

Out of curiousity, is there any special reason not to take the 
UnsupportedOperationException instead?

btw, I really like your exception renaming effort!

--
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

Mime
View raw message