function ProcessStartFailedException::__construct
Overrides ProcessFailedException::__construct
File
-
vendor/
symfony/ process/ Exception/ ProcessStartFailedException.php, line 21
Class
- ProcessStartFailedException
- Exception for processes failed during startup.
Namespace
Symfony\Component\Process\ExceptionCode
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);
}