class RequeueException

Same name in other branches
  1. 9 core/lib/Drupal/Core/Queue/RequeueException.php \Drupal\Core\Queue\RequeueException
  2. 8.9.x core/lib/Drupal/Core/Queue/RequeueException.php \Drupal\Core\Queue\RequeueException
  3. 11.x core/lib/Drupal/Core/Queue/RequeueException.php \Drupal\Core\Queue\RequeueException

Throw this exception to release the item allowing it to be processed again.

Hierarchy

  • class \Drupal\Core\Queue\RequeueException extends \Drupal\Core\Queue\RuntimeException

Expanded class hierarchy of RequeueException

3 files declare their use of RequeueException
Cron.php in core/lib/Drupal/Core/Cron.php
CronQueueTestRequeueException.php in core/modules/system/tests/modules/cron_queue_test/src/Plugin/QueueWorker/CronQueueTestRequeueException.php
CronTest.php in core/tests/Drupal/Tests/Core/CronTest.php
2 string references to 'RequeueException'
CronTest::processQueuesTestData in core/tests/Drupal/Tests/Core/CronTest.php
Data provider for ::testProcessQueues() method.
CronTest::testRequeueException in core/tests/Drupal/Tests/Core/CronTest.php
Verify that RequeueException causes an item to be processed multiple times.

File

core/lib/Drupal/Core/Queue/RequeueException.php, line 8

Namespace

Drupal\Core\Queue
View source
class RequeueException extends \RuntimeException {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.