public function TaskEvent::setException in Search API 8
Sets the exception that stopped the execution of the task.
Parameters
\Drupal\search_api\SearchApiException|null $exception: The exception that occurred.
Return value
$this
File
- src/
Task/ TaskEvent.php, line 72
Class
- TaskEvent
- Represents an event that was fired to execute a pending task.
Namespace
Drupal\search_api\TaskCode
public function setException(SearchApiException $exception = NULL) {
$this->exception = $exception;
return $this;
}