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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
Navin Surtani
Intern Infinispan
Intern JBoss Cache Searchable