Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Interfaces

  • ExceptionInterface

Exceptions

  • AdapterFailureException
  • OperationNotPermitedException
  • ShellCommandFailureException
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: 
 3: /*
 4:  * This file is part of the Symfony package.
 5:  *
 6:  * (c) Fabien Potencier <fabien@symfony.com>
 7:  *
 8:  * For the full copyright and license information, please view the LICENSE
 9:  * file that was distributed with this source code.
10:  */
11: 
12: namespace Symfony\Component\Finder\Exception;
13: 
14: use Symfony\Component\Finder\Adapter\AdapterInterface;
15: use Symfony\Component\Finder\Shell\Command;
16: 
17: /**
18:  * @author Jean-François Simon <contact@jfsimon.fr>
19:  */
20: class ShellCommandFailureException extends AdapterFailureException
21: {
22:     /**
23:      * @var Command
24:      */
25:     private $command;
26: 
27:     /**
28:      * @param AdapterInterface $adapter
29:      * @param Command          $command
30:      * @param \Exception|null  $previous
31:      */
32:     public function __construct(AdapterInterface $adapter, Command $command, \Exception $previous = null)
33:     {
34:         $this->command = $command;
35:         parent::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
36:     }
37: 
38:     /**
39:      * @return Command
40:      */
41:     public function getCommand()
42:     {
43:         return $this->command;
44:     }
45: }
46: 
php-coveralls API documentation generated by ApiGen 2.8.0