Open vprudnikov opened 7 months ago
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.
MyException ex = new MyException ("you will be caught");
However, if I use a catch block like so: } catch (MyException e) { then ArchUnit simply ignores it.
} catch (MyException e) {
Hi!
I have a rule that verifies dependency between layers:
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.