3 namespace Drupal\Core\Queue;
6 * Exception class to throw to indicate that a cron queue should be skipped.
8 * An implementation of \Drupal\Core\Queue\QueueWorkerInterface::processItem()
9 * throws this class of exception to indicate that processing of the whole queue
10 * should be skipped. This should be thrown rather than a normal Exception if
11 * the problem encountered by the queue worker is such that it can be deduced
12 * that workers of subsequent items would encounter it too. For example, if a
13 * remote site that the queue worker depends on appears to be inaccessible.
15 class SuspendQueueException extends \RuntimeException {}