[infinispan-dev] Util.getInstance
Navin Surtani
nsurtani at redhat.com
Thu Sep 3 05:41:12 EDT 2009
On 3 Sep 2009, at 10:38, Mircea Markus wrote:
> There are a bunch of getInstance methods in Util for instantiating
> objects that throw very specific checked exceptions(throws
> IllegalAccessException, InstantiationException).
> I'm thinking to remove this checked exceptions and wrap them in an
> runtime CacheException, to simplify the calling code that catches them
> and wraps them in a CacheException itself. If one would need to be
> informed weather a class couldn't be instantiated, it can catch the
> thrown CacheException.
Yeah I reckon that's a good shout. Wrapping 2 exceptions into one just
makes things look a bit neater if anything else :-).
> Wdyt?
>
> Cheers,
> Mircea
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
Navin Surtani
Intern Infinispan
Intern JBoss Cache Searchable
More information about the infinispan-dev
mailing list