(PECL gearman >= 0.6.0)
GearmanJob::sendException — Send exception for running job (exception)
$exception): boolSends the supplied exception when this job is running.
exceptionAn exception description.
Returns true on success or false on failure.