function SuspendQueueException::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Queue/SuspendQueueException.php \Drupal\Core\Queue\SuspendQueueException::__construct()
Constructs a SuspendQueueException.
Parameters
string $message: The error message.
int $code: The error code.
\Throwable|null $previous: The previous throwable used for the exception chaining.
float|null $delay: If the time for when the queue will be ready to resume processing is known, pass an interval in seconds. Otherwise NULL if the time to resume processing the queue is not known.
File
-
core/
lib/ Drupal/ Core/ Queue/ SuspendQueueException.php, line 38
Class
- SuspendQueueException
- Exception class to throw to indicate that a cron queue should be skipped.
Namespace
Drupal\Core\QueueCode
public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = NULL, ?float $delay = NULL) {
parent::__construct($message, $code, $previous);
$this->delay = $delay;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.