Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 74213 invoked from network); 4 Dec 2005 23:19:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Dec 2005 23:19:50 -0000 Received: (qmail 52521 invoked by uid 500); 4 Dec 2005 23:19:48 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 52367 invoked by uid 500); 4 Dec 2005 23:19:47 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 52356 invoked by uid 99); 4 Dec 2005 23:19:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 15:19:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of larry.meadors@gmail.com designates 64.233.162.207 as permitted sender) Received: from [64.233.162.207] (HELO zproxy.gmail.com) (64.233.162.207) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 15:19:46 -0800 Received: by zproxy.gmail.com with SMTP id l8so970761nzf for ; Sun, 04 Dec 2005 15:19:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D7Zw4n+njHnsGLvdHVZvRAA7FmdKyiIdChz4CkjTsljSTRnSvG22OUXkFmowRHz/I2MaVy8yi4feActFps2o5gB6VpKPnkg4uP7qPEG2PuSZzhS/JtcQtEOz/6D9DkrxhHhZbEMi0Q+mYmBXcxS07dzfveo3sYgz8JkgsxbRpyo= Received: by 10.36.224.57 with SMTP id w57mr4647518nzg; Sun, 04 Dec 2005 15:19:26 -0800 (PST) Received: by 10.36.119.9 with HTTP; Sun, 4 Dec 2005 15:19:26 -0800 (PST) Message-ID: Date: Sun, 4 Dec 2005 16:19:26 -0700 From: Larry Meadors Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: DAO catch SQLexceptions In-Reply-To: <041401c5f924$63580960$0601a8c0@RIGCIserver> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <041401c5f924$63580960$0601a8c0@RIGCIserver> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N That would not throw an exception anyway - the returned object would simply be null. Larry On 12/4/05, Edwin S Lukaweski wrote: > > > I am using Ibatis Data Access Objects. I cannot figure out how to catch > SQLExceptions when using methods like "group =3D > (Group)queryForObject("getGroup", oid);" > > I wish to catch the fact that a row may not exist and report the erro= r > back to the user. The Data Mapper seems to provide SQLExceptions bu the D= AO > methods do not. > > Any help would be appreciated. > > Edwin