ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris O'Connell" <oconn...@gorillachicago.com>
Subject RE: SQLException
Date Thu, 03 Jul 2008 19:26:11 GMT
Are you using Spring?  The Spring SqlMapClientTemplate converts all those
SQLExceptions into a runtime exception, so your IDE won't see any exception
that you need to 'catch'.

-----Original Message-----
From: John Chien [mailto:john.chien@ncmail.net] 
Sent: Thursday, July 03, 2008 1:33 PM
To: user-java@ibatis.apache.org
Subject: SQLException

According to the IBatis Developer Guide, the insert(), update()  ... etc
will throw SQLException.

However, when I use try and catch block to catch the SQLException, I was
told that the exception never throws.

What is the real exception throws from those statement ?

Thanks,

John Chien



No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.134 / Virus Database: 270.4.4/1531 - Release Date: 7/2/2008
7:02 PM


Mime
View raw message