4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Finder\Exception
;
14 use Symfony\Component\Finder\Adapter\AdapterInterface
;
15 use Symfony\Component\Finder\Shell\Command
;
18 * @author Jean-François Simon <contact@jfsimon.fr>
20 class ShellCommandFailureException
extends AdapterFailureException
28 * @param AdapterInterface $adapter
29 * @param Command $command
30 * @param \Exception|null $previous
32 public function __construct(AdapterInterface
$adapter, Command
$command, \Exception
$previous = null)
34 $this->command
= $command;
35 parent
::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
41 public function getCommand()
43 return $this->command
;