Issue #3186934 by mondrake, daffie, donquixote, alexpott: Introduce an ExceptionHandler class in the database API, deprecate Connection::handleQueryException