cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: How can I handle validation exception?
Date Thu, 12 Mar 2009 09:13:14 GMT

On Mar 12, 2009, at 11:03 AM, Νίκος Παράσχου wrote:

> I meant that I can't write the following because it can't be compiled
> (note that a ValidationException is caught):
>
> try {
>        context.commitChanges();
> }
> catch(ValidationException vex) {
>        // ...
> }

Yes you can. Just try it.

Andrus
Mime
View raw message