function 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;
}