cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Νίκος Παράσχου <nipar...@gmail.com>
Subject Re: How can I handle validation exception?
Date Thu, 12 Mar 2009 08:34:07 GMT
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
> 


Mime
View raw message