class ProcessSignaledException
Exception that is thrown when a process has been signaled.
@author Sullivan Senechal <soullivaneuh@gmail.com>
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\ProcessSignaledException 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 ProcessSignaledException
2 files declare their use of ProcessSignaledException
- Process.php in vendor/
symfony/ process/ Process.php - ProcessExecutor.php in vendor/
composer/ composer/ src/ Composer/ Util/ ProcessExecutor.php
File
-
vendor/
symfony/ process/ Exception/ ProcessSignaledException.php, line 21
Namespace
Symfony\Component\Process\ExceptionView source
final class ProcessSignaledException extends RuntimeException {
public function __construct(Process $process) {
parent::__construct(\sprintf('The process has been signaled with signal "%s".', $process->getTermSignal()));
}
public function getProcess() : Process {
return $this->process;
}
public function getSignal() : int {
return $this->getProcess()
->getTermSignal();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ProcessSignaledException::getProcess | public | function | |
ProcessSignaledException::getSignal | public | function | |
ProcessSignaledException::__construct | public | function |