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 Symfony 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
28 public function __construct(AdapterInterface $adapter, Command $command, \Exception $previous = null)
30 $this->command = $command;
31 parent::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
37 public function getCommand()
39 return $this->command;