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
- class \Symfony\Component\Process\Exception\ProcessFailedException extends \Symfony\Component\Process\Exception\RuntimeException
- class \Symfony\Component\Process\Exception\RuntimeException extends \Symfony\Component\Process\Exception\RuntimeException implements \Symfony\Component\Process\Exception\ExceptionInterface
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\ExceptionView 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 |