Ignore exception if its ancestor is an ignored class.

When I add an ignored class, my expectation is that all subclasses
will be equally ignored. This makes it easy, for example, to ignore
all 4xx code HTTP response exceptions by specifying one generic
superclass.