i was wondering why all the TreeCache methods throw Exception instead of something 
more specific?

for example, setIsolationLevel does:
  |       if(tmp_level == null) {
  |          throw new Exception("TreeCache.setIsolationLevel(): level \"" + level + 
"\" is invalid");
  |       }
  | 
why not throw an InvalidArgumentException here?

all the fun methods (put, get, remove) also throw Exception, it seems like this makes 
it much more difficult on the caller to know what to handle and when, etc.

thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845940#3845940

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845940


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to