Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 82510 invoked from network); 12 Mar 2009 08:34:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2009 08:34:48 -0000 Received: (qmail 48842 invoked by uid 500); 12 Mar 2009 08:34:44 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 48833 invoked by uid 500); 12 Mar 2009 08:34:44 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 48822 invoked by uid 99); 12 Mar 2009 08:34:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2009 01:34:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of niparasc@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2009 08:34:34 +0000 Received: by nf-out-0910.google.com with SMTP id k4so69880nfd.2 for ; Thu, 12 Mar 2009 01:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=wUZ6NcmnnV4Cw9aEy/GN4aLldxp9FdEk1zjQtzd6kQY=; b=almwWyyq0wJCDYHzVZmy8+cpFVfXobS6iORPAZ4pfnps0FBX7XL3OMYRIraSneiwR3 Anf/Rg1/WjEk1pCQ5ASXQtiRi+RSQbZwxFue15siuKt1ungoJ7T4j+6zlU/oSjqB7V64 +uMQjB5q/mMrOMBIOuniqde/gV9PY1JNy0r/0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=hRVdRBElSE1qcdjEzBRTzdon4QV+OeuI7eoOoBz+hcyNih/ZcsOgGBHihn9HuBE0BD a23ZY43ktRQQEhgFoucokSH3KDWtrNUI0HcpTnTQebSLKkuyyAxBUpFP8rSi1Z+2/Tre dwp+yfl/VYvWhGQq8cKrjo/TnP7iPQi0B+RiQ= Received: by 10.216.26.70 with SMTP id b48mr3850641wea.141.1236846854320; Thu, 12 Mar 2009 01:34:14 -0700 (PDT) Received: from ?192.168.1.159? (ppp-94-69-156-222.home.otenet.gr [94.69.156.222]) by mx.google.com with ESMTPS id 6sm717572nfv.24.2009.03.12.01.34.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Mar 2009 01:34:13 -0700 (PDT) Subject: Re: How can I handle validation exception? From: =?UTF-8?Q?=CE=9D=CE=AF=CE=BA=CE=BF=CF=82_?= =?UTF-8?Q?=CE=A0=CE=B1=CF=81=CE=AC=CF=83=CF=87=CE=BF=CF=85?= To: user@cayenne.apache.org In-Reply-To: References: <1236697433.6175.5.camel@nikp-diaamath> <1236756996.6168.7.camel@nikp-diaamath> <1236762112.6168.24.camel@nikp-diaamath> <2EB09FB0-7DF5-48E8-8C26-A74A6020670D@objectstyle.org> <1236843671.6147.11.camel@nikp-diaamath> Content-Type: text/plain; charset="UTF-8" Date: Thu, 12 Mar 2009 10:34:07 +0200 Message-Id: <1236846847.6147.18.camel@nikp-diaamath> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I am using the latest (stable) release: Cayenne 2.0.4 Built on October 8 2007 The java doc of this release indicates that commitChanges() throws directly only CayenneRuntimeException. http://cayenne.apache.org/doc20/api/cayenne/org/apache/cayenne/access/DataContext.html#commitChanges() Nikos Στις 12-03-2009, ημέρα Πεμ, και ώρα 10:22 +0200, ο/η Andrus Adamchik έγραψε: > On Mar 12, 2009, at 9:41 AM, Νίκος Παράσχου wrote: > > > The problem is that commitChanges() doesn't throw directly a > > ValidationException so I cannot catch it in the catch block (it > > throws a > > CayenneRuntimeException) > > Which version of Cayenne? This could be a bug. > > Andrus >