Verify correctness of exception hierarchy specified when creating typed exception handler.