Hi!
I have a rule that verifies dependency between layers:
...
.whereLayer(LAYER_INFRASTRUCTURE).mayNotBeAccessedByAnyLayer()
...
The problem is that it doesn't work with catch blocks defined in other layers.
If I use an exception like this:
MyException ex = new MyException ("you will be caught"); then ArchUnit catches it.
However, if I use a catch block like so:
} catch (MyException e) {
then ArchUnit simply ignores it.