You are here

protected function FeedQueueWorkerBase::handleException in Feeds 8.3

Handles an import exception.

File

src/Plugin/QueueWorker/FeedQueueWorkerBase.php, line 89

Class

FeedQueueWorkerBase
Base class for Feed queue workers.

Namespace

Drupal\feeds\Plugin\QueueWorker

Code

protected function handleException(FeedInterface $feed, \Exception $exception) {
  $feed
    ->finishImport();
  if (!$exception instanceof EmptyFeedException) {
    throw $exception;
  }
}