about exception message
- From: Spark <liang.spark@xxxxxxxxx>
- Date: Fri, 29 Feb 2008 23:14:48 -0800 (PST)
Hi here,
I got a problem in my program. Spring+hibernate+postgresql were used
in my case.
I manipulate data use HibernateTemplate from spring, sometime I do
some operation to break the database constraint, such as insert a
duplicate key record. I obtain the reason of exception by mothed
getMessage(). the following message was presented
"Could not execute JDBC batch update; nested exception is
org.hibernate.exception.ConstraintViolationException: Could not
execute JDBC batch update".
But it's not as me might expect. I wanted the orignal message from the
database.
Appriciate anyone who point me out!
lx
.
- Follow-Ups:
- Re: about exception message
- From: Sabine Dinis Blochberger
- Re: about exception message
- Prev by Date: Re: displaying dynamic table using jsp
- Next by Date: Re: displaying dynamic table using jsp
- Previous by thread: Dynamic PreparedStatements with Variable In Parameters
- Next by thread: Re: about exception message
- Index(es):
Relevant Pages
|