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

Breadcrumb

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

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

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\Exception
View 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

API Navigation

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