throw exception on inexistant entity edit