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

Breadcrumb

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

class ProcessStartFailedException

Exception for processes failed during startup.

Hierarchy

  • class \Symfony\Component\Process\Exception\RuntimeException extends \Symfony\Component\Process\Exception\RuntimeException implements \Symfony\Component\Process\Exception\ExceptionInterface
    • class \Symfony\Component\Process\Exception\RuntimeException extends \Symfony\Component\Process\Exception\RuntimeException implements \Symfony\Component\Process\Exception\ExceptionInterface
      • class \Symfony\Component\Process\Exception\ProcessFailedException extends \Symfony\Component\Process\Exception\RuntimeException
        • class \Symfony\Component\Process\Exception\ProcessStartFailedException extends \Symfony\Component\Process\Exception\ProcessFailedException

Expanded class hierarchy of ProcessStartFailedException

1 file declares its use of ProcessStartFailedException
Process.php in vendor/symfony/process/Process.php

File

vendor/symfony/process/Exception/ProcessStartFailedException.php, line 19

Namespace

Symfony\Component\Process\Exception
View source
class ProcessStartFailedException extends ProcessFailedException {
    public function __construct(Process $process, ?string $message) {
        if ($process->isStarted()) {
            throw new InvalidArgumentException('Expected a process that failed during startup, but the given process was started successfully.');
        }
        $error = \sprintf('The command "%s" failed.' . "\n\nWorking directory: %s\n\nError: %s", $process->getCommandLine(), $process->getWorkingDirectory(), $message ?? 'unknown');
        // Skip parent constructor
        RuntimeException::__construct($error);
    }
    public function getProcess() : Process {
        return $this->process;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ProcessStartFailedException::getProcess public function Overrides ProcessFailedException::getProcess
ProcessStartFailedException::__construct public function Overrides ProcessFailedException::__construct

API Navigation

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