Throw exception when entity not found.