commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / vendor / symfony / finder / Symfony / Component / Finder / Exception / ShellCommandFailureException.php
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 }