# defender-security/5.7.0/vendor/symfony/process/Exception/ProcessSignaledException.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.7.0. 42 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.7.0/code/vendor/symfony/process/Exception/ProcessSignaledException.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.7.0/raw/vendor/symfony/process/Exception/ProcessSignaledException.php
- Modified: 2022-06-13T09:01:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/5.7.0/code/vendor/symfony/process/Exception/ProcessSignaledException.php#L10-L20`.

```php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Process\Exception;

use Symfony\Component\Process\Process;

/**
 * Exception that is thrown when a process has been signaled.
 *
 * @author Sullivan Senechal <soullivaneuh@gmail.com>
 */
final class ProcessSignaledException extends RuntimeException
{
    private $process;

    public function __construct(Process $process)
    {
        $this->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();
    }
}

```
