Convert method of SqlExceptionHandler logs exception

Description

At the moment, the convert method of the SqlExceptionHelper calls the method logExceptions() before converting the exception. This makes it impossible to handle exceptions without having them logged and without disabling the whole logging.

Environment

H2 database with Hibernate 5.0.10

Activity

Show:
Noel O'Shea
July 28, 2020, 8:00 AM

This is also causing us alot of problems. Our alerting is being triggered because errors are being written to the log file but we are handling the exception so the error log is for us totally unnecessary. The caller should decide themselves what they want to do with the exception or not and IMHO the 'message' should be part of the exception itself.

Assignee

Unassigned

Reporter

Daniel Sierninger

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure