Introduce hierarchy in not found exceptions.