In Java I have a method catching an exception \'ChildException\' that extends \'NewException\'. If that method calls another method that throws a \'NewException\' and let\'s
Think of it as an instanceof test
e.g.
if (e instanceof ChildException) { ... }
so specifying a class type will catch the class and its subclasses.