Fixed #15901 -- Wrapped all DB-API 2.0 exceptions.