SQOOP-933: Properly log SQLExceptions using getNextException() method for chaining exceptions

(Jarek Jarcec Cecho via Abhijeet Gaikwad)