You are here

public function TaskEvent::getException in Search API 8

Retrieves any exception that stopped the execution of the task.

Return value

\Drupal\search_api\SearchApiException|null The exception, if any.

File

src/Task/TaskEvent.php, line 60

Class

TaskEvent
Represents an event that was fired to execute a pending task.

Namespace

Drupal\search_api\Task

Code

public function getException() {
  return $this->exception;
}