[midPoint-git] [Evolveum/midpoint] f56b9d: Don't use `Throwable` in `catch` statement

Andrej noreply at github.com
Fri Jan 24 10:14:59 CET 2025


  Branch: refs/heads/throwable-to-exception
  Home:   https://github.com/Evolveum/midpoint
  Commit: f56b9d4f14d9160a78e5d5410c8f8fc41ed918f4
      https://github.com/Evolveum/midpoint/commit/f56b9d4f14d9160a78e5d5410c8f8fc41ed918f4
  Author: Andrej Zan <andrej.zan at evolveum.com>
  Date:   2025-01-24 (Fri, 24 Jan 2025)

  Changed paths:
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/invalidation/ChangeDescription.java

  Log Message:
  -----------
  Don't use `Throwable` in `catch` statement

**Why**

Catching `Throwable` to "catch them all" is a bad practice, because it
catches also `Error`'s which in general, should not be catched, because
you "usuealy" can not do anything with them.



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list