commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Froehlich" <>
Subject RE: [simplestore] what Exceptions do we need?
Date Thu, 24 Jan 2002 19:05:16 GMT

>From: Juozas Baliuka []
>1."ServiceNotAvailableException" is useful to handle fatal erros, "Log 
>message,send SNS for admin .... "
>2."NotFoundException" <==> "KeyNotFoundException" is useful to optimize 
>"get" without   "contais" and for null result, nul is also "good" value.

A Exception seems to be cleaner in this case. What do you think.

>3."KeyNotUniqueException" <==> "DublicateKeyException" is usefull for 
>"put", because it returns "void" and  store can be used without "contais".


>all of them not useful for memory stores, because they use Map for internal 
>optimizations and in case "ServiceNotAvailableException" it impossible to 
>handle, handling will fail :)
>But for stores like "JDBCStore", "FileStore", "RemoteStore" exceptions are 
>very useful.

;-) ok what's your statement. Yes or No for Exceptions?

Very funny, Scotty. Now beam down my clothes.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message