Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 68800 invoked from network); 25 Jan 2002 12:38:07 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Jan 2002 12:38:07 -0000 Received: (qmail 22653 invoked by uid 97); 25 Jan 2002 12:38:05 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 22603 invoked by uid 97); 25 Jan 2002 12:38:04 -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 22592 invoked from network); 25 Jan 2002 12:38:04 -0000 Subject: RE: [simplestore] what Exceptions do we need? To: "Jakarta Commons Developers List" X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: "Gerhard Froehlich" Date: Fri, 25 Jan 2002 13:34:56 +0100 X-MIMETrack: Serialize by Router on D08ML005/08/M/IBM(Release 5.0.8 |June 18, 2001) at 25/01/2002 13:39:12 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, >> >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 !!!. Yes that I wanna hear ;). I vote for: KeyNotFoundException KeyNotUniqueException ServiceNotAvailableException I don't see yet. But if want it then I will book it in! Gerhard -- To unsubscribe, e-mail: For additional commands, e-mail: