ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
Symfony\Component\Process\Exception\ProcessTimedOutException Class Reference

Exception that is thrown when a process times out. More...

+ Inheritance diagram for Symfony\Component\Process\Exception\ProcessTimedOutException:
+ Collaboration diagram for Symfony\Component\Process\Exception\ProcessTimedOutException:

Public Member Functions

 __construct (Process $process, $timeoutType)
 
 getProcess ()
 
 isGeneralTimeout ()
 
 isIdleTimeout ()
 
 getExceededTimeout ()
 

Data Fields

const TYPE_GENERAL = 1
 
const TYPE_IDLE = 2
 

Private Attributes

 $process
 
 $timeoutType
 

Detailed Description

Exception that is thrown when a process times out.

Author
Johannes M. Schmitt schmi.nosp@m.ttjo.nosp@m.h@gma.nosp@m.il.c.nosp@m.om

Definition at line 21 of file ProcessTimedOutException.php.

Constructor & Destructor Documentation

◆ __construct()

Symfony\Component\Process\Exception\ProcessTimedOutException::__construct ( Process  $process,
  $timeoutType 
)

Member Function Documentation

◆ getExceededTimeout()

Symfony\Component\Process\Exception\ProcessTimedOutException::getExceededTimeout ( )

Definition at line 56 of file ProcessTimedOutException.php.

Referenced by Symfony\Component\Process\Exception\ProcessTimedOutException\__construct(), Symfony\Component\Process\Tests\ProcessTest\testIdleTimeout(), and Symfony\Component\Process\Tests\ProcessTest\testIdleTimeoutNotExceededWhenOutputIsSent().

57  {
58  switch ($this->timeoutType) {
59  case self::TYPE_GENERAL:
60  return $this->process->getTimeout();
61 
62  case self::TYPE_IDLE:
63  return $this->process->getIdleTimeout();
64 
65  default:
66  throw new \LogicException(sprintf('Unknown timeout type "%d".', $this->timeoutType));
67  }
68  }
+ Here is the caller graph for this function:

◆ getProcess()

Symfony\Component\Process\Exception\ProcessTimedOutException::getProcess ( )

◆ isGeneralTimeout()

Symfony\Component\Process\Exception\ProcessTimedOutException::isGeneralTimeout ( )

Definition at line 46 of file ProcessTimedOutException.php.

Referenced by Symfony\Component\Process\Tests\ProcessTest\testIdleTimeout(), and Symfony\Component\Process\Tests\ProcessTest\testIdleTimeoutNotExceededWhenOutputIsSent().

47  {
48  return $this->timeoutType === self::TYPE_GENERAL;
49  }
+ Here is the caller graph for this function:

◆ isIdleTimeout()

Symfony\Component\Process\Exception\ProcessTimedOutException::isIdleTimeout ( )

Definition at line 51 of file ProcessTimedOutException.php.

Referenced by Symfony\Component\Process\Tests\ProcessTest\testIdleTimeout(), and Symfony\Component\Process\Tests\ProcessTest\testIdleTimeoutNotExceededWhenOutputIsSent().

52  {
53  return $this->timeoutType === self::TYPE_IDLE;
54  }
+ Here is the caller graph for this function:

Field Documentation

◆ $process

Symfony\Component\Process\Exception\ProcessTimedOutException::$process
private

◆ $timeoutType

Symfony\Component\Process\Exception\ProcessTimedOutException::$timeoutType
private

◆ TYPE_GENERAL

const Symfony\Component\Process\Exception\ProcessTimedOutException::TYPE_GENERAL = 1

◆ TYPE_IDLE

const Symfony\Component\Process\Exception\ProcessTimedOutException::TYPE_IDLE = 2

The documentation for this class was generated from the following file: