I am transitioning to session.doWork and in implementing
public void execute(Connection connection) throws SQLException
I am calling a method which throws an exception other than SQLException. What is the recommended way to handle such a situation? Should I catch the exception and then wrap it in an SQLException and throw the SQLException? It seems odd to me that the only exception that is allowed to be throw inside the execute method is the SQLException. Is there a reason that it doesn't just throw Exception?