O'Reilly logo
  • Pawel Stankiewicz thinks this is interesting:

It is a common pattern to log and then throw the same exception.

From

Cover of OCP Oracle® Certified Professional Java® SE 8 Programmer II

Note

Log and Throw is an anti pattern, excluding entry points (https://www.mail-archive.com/jboss-development@lists.sourceforge.net/msg49660.html).

Check the following:

https://stackoverflow.com/questions/6639963/why-is-log-and-throw-considered-an-anti-pattern#answer-6640029
https://community.oracle.com/docs/DOC-983543#logAndThrow
https://stackify.com/common-mistakes-handling-java-exception/#mistake3
https://rolf-engelhard.de/2013/04/logging-anti-patterns-part-ii/#more-296
http://blog.schauderhaft.de/2011/01/30/logging-antipatterns/

Interesting discussions are here:
https://hibernate.atlassian.net/browse/HB-1308?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
And ...