Look for the words ** BEGIN NESTED EXCEPTION **
. This exception is not thrown by execute()
, it's a nested exception. That means that is was passed as the cause when creating the SQLException
. Something like this:
try {
...
} catch (EOFException e) {
throw new SQLException(e);
}