Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 35133 invoked from network); 25 Jan 2002 06:49:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Jan 2002 06:49:47 -0000 Received: (qmail 22774 invoked by uid 97); 25 Jan 2002 06:49:56 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 22744 invoked by uid 97); 25 Jan 2002 06:49:55 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 22733 invoked from network); 25 Jan 2002 06:49:55 -0000 Message-Id: <5.0.2.1.0.20020125085627.026484c8@mail.mediaworks.lt> X-Sender: baliuka@mail.mediaworks.lt X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 25 Jan 2002 08:57:51 +0100 To: "Jakarta Commons Developers List" From: Juozas Baliuka Subject: RE: [simplestore] what Exceptions do we need? In-Reply-To: References: <5.0.2.1.0.20020124114103.00b3c868@mail.mediaworks.lt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 08:05 PM 1/24/2002 +0100, you wrote: >Hi, > > >From: Juozas Baliuka [mailto:baliuka@mwm.lt] > > > >Hi, > >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". > >Yep. > > >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? Yes, for for Exceptions !!!. > Gerhard > >--------------------------------------------- >Very funny, Scotty. Now beam down my clothes. >--------------------------------------------- > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: