Throw an exception when the entity is not found