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 @trigger_error('The '.__NAMESPACE__.'\ShellCommandFailureException class is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
16 use Symfony\Component\Finder\Adapter\AdapterInterface;
17 use Symfony\Component\Finder\Shell\Command;
20 * @author Jean-François Simon <contact@jfsimon.fr>
22 * @deprecated since 2.8, to be removed in 3.0.
24 class ShellCommandFailureException extends AdapterFailureException
32 * @param AdapterInterface $adapter
33 * @param Command $command
34 * @param \Exception|null $previous
36 public function __construct(AdapterInterface $adapter, Command $command, \Exception $previous = null)
38 $this->command = $command;
39 parent::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
45 public function getCommand()
47 return $this->command;