Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ProcessTimedOutException.php

function ProcessTimedOutException::getExceededTimeout

1 call to ProcessTimedOutException::getExceededTimeout()
ProcessTimedOutException::__construct in vendor/symfony/process/Exception/ProcessTimedOutException.php

File

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

Class

ProcessTimedOutException
Exception that is thrown when a process times out.

Namespace

Symfony\Component\Process\Exception

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal