openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plins...@gmail.com
Subject Re: How do I distinguish different types of exceptions in openjpa
Date Fri, 30 Nov 2007 08:00:06 GMT
Yes; often, there will be a nested exception available from
Exception.getCause().

-Patrick

On 11/29/07, Gul Onural <onural@nortel.com> wrote:
>
> When a database error occurs in the openjpa, I always get rollback
> exception. For example if there is an error
> because of a duplicate record creation attempt, I still get rollback
> exception.
>
> Is there a way to inspect the exception to see the root cause ?
>
> Gul
>


-- 
Patrick Linskey
202 669 5907

Mime
View raw message