A code throws out several types of exceptions, the handling of which is the same. For example:
try { // ... } catch (InvalidOperationException e) { // ... } catch (ArgumentException e) { // ... }
The code executed in the catch blocks is identical. I put it in the onException () function. But, nevertheless, all the same, quite a lot of code branches.
Is there a way to make the filter on exceptions different - more briefly?