public function __construct(OperationRunner $runner, Waiter $waitStrategy, ExceptionCatcherVoter $exceptionCatcherVoter = null)
{
$this->runner = $runner;
$this->waitStrategy = $waitStrategy;
$this->exceptionCatcherVoter = $exceptionCatcherVoter ?: new WildcardExceptionVoter();
if (!$this->exceptionCatcherVoter instanceof ThrowableCatcherVoter) {
trigger_error(sprintf('%s is deprecated, you should implement %s instead', ExceptionCatcherVoter::class, ThrowableCatcherVoter::class), E_USER_DEPRECATED);
}
}