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\DependencyInjection\Exception;
15 * Thrown when a definition cannot be autowired.
17 class AutowiringFailedException extends RuntimeException
21 public function __construct($serviceId, $message = '', $code = 0, \Exception $previous = null)
23 $this->serviceId = $serviceId;
25 parent::__construct($message, $code, $previous);
28 public function getServiceId()
30 return $this->serviceId;