php8.5
Home/ Manual/ gearman / gearmanjob/ GearmanJob::sendException

GearmanJob::sendException

PHP function Edit on GitHub ✎

(PECL gearman >= 0.6.0)

Send exception for running job (exception)

Description

GearmanJob::sendException(string $exception): bool

Sends the supplied exception when this job is running.

Parameters

exception

An exception description.

Return Values

Success

See Also

  • GearmanJob::setReturn
  • GearmanJob::sendStatus
  • GearmanJob::sendWarning

Source: reference/gearman/gearmanjob/sendexception.xml · from the official PHP manual (php/doc-en)