CBS_EXCEPTION
if (ret > 0 && gen->istatus == CBS_EXCEPTION) {
return CBS_EXCEPTION;
if (ret == CBS_EXCEPTION)