You are here

public function ProcessTimedOutException::getExceededTimeout in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Exception/ProcessTimedOutException.php \Symfony\Component\Process\Exception\ProcessTimedOutException::getExceededTimeout()
1 call to ProcessTimedOutException::getExceededTimeout()
ProcessTimedOutException::__construct in vendor/symfony/process/Exception/ProcessTimedOutException.php

File

vendor/symfony/process/Exception/ProcessTimedOutException.php, line 56

Class

ProcessTimedOutException
Exception that is thrown when a process times out.

Namespace

Symfony\Component\Process\Exception

Code

public function getExceededTimeout() {
  switch ($this->timeoutType) {
    case self::TYPE_GENERAL:
      return $this->process
        ->getTimeout();
    case self::TYPE_IDLE:
      return $this->process
        ->getIdleTimeout();
    default:
      throw new \LogicException(sprintf('Unknown timeout type "%d".', $this->timeoutType));
  }
}