Reorganized exceptions inheritance