Hello, The true reference for these things is the current Javadoc, for instance: http://www.jooq.org/javadoc/latest/org/jooq/Cursor.html#hasNext%28%29
It looks as though the manual is not up to date. jOOQ should never throw a SQLException. I'll fix this in the manual, soon: https://sourceforge.net/apps/trac/jooq/ticket/1489 Thanks for reporting this Cheers Lukas 2012/6/7 Gili <[email protected]>: > Hi, > > I'm pretty sure I posted this question recently but I can't find a trace of > it so here goes... > > Looking at http://www.jooq.org/manual-single-page/ I see that some methods > throw SQLException while other methods throw DataAccessException. Why do we > have both these exceptions? Should JOOQ only throw one? > > Even if this was fixed, it looks like I'm forced to invoke > Factory.getConnection().commit() to commit the transaction. Since > factory.getConnection() returns java.sql.Connection, the commit() method > throws SQLException again. Shouldn't JOOQ provide a wrapper class that wraps > converts all SQLExceptions to DataAccessException? > > > Thanks, > Gili
