private function runOperation(Operation $operation)
{
try {
return $this->runner->run($operation);
} catch (\Throwable $e) {
// treated below
} catch (\Exception $e) {
// treated below
}
// @todo keep only inner if once ExceptionCatcher is gone
if ($this->exceptionCatcherVoter instanceof ThrowableCatcherVoter) {
if (!$this->exceptionCatcherVoter->shouldCatchThrowable($e)) {
throw $e;
}
} elseif (!$this->exceptionCatcherVoter->shouldCatch($e)) {
throw $e;
}
try {
$this->waitStrategy->wait();
} catch (WaiterException $waiterException) {
throw $e;
}
return $this->runOperation($operation);
}