ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: IBatis 3 Exceptions
Date Fri, 04 Dec 2009 01:47:25 GMT
Nope.  Nothing technical.  I just happen to hate checked exceptions.  :-)

The original exception is always nested within the runtime one though, so
you have full access to everything you need.

There is a bit of placeholder code where I had intended to build a hierarchy
of exceptions, similar to Spring's exceptions.  But honestly, I cannot
recall a time in my 12 years of Java coding when I could actually do
something useful with a database exception, other than apologize to the user
with a dialog box.


On Thu, Dec 3, 2009 at 2:15 PM, Alex Sherwin <alex.sherwin@acadiasoft.com>wrote:

> Why does IBatis 3.0 throw IbatisException (RuntimeException) instead of
> checked exceptions?
> Is this a limitation now due to the dynamic nature of the generic typed
> mapped statement classes?  IbatisException doesn't even seem to wrap
> SQLException, I see it wrapping the native exceptions from my JDBC driver
> (MySQL).
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message