Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace Symfony\Component\DependencyInjection\Exception; Chris@14: Chris@14: /** Chris@14: * Thrown when a definition cannot be autowired. Chris@14: */ Chris@14: class AutowiringFailedException extends RuntimeException Chris@14: { Chris@14: private $serviceId; Chris@14: Chris@14: public function __construct($serviceId, $message = '', $code = 0, \Exception $previous = null) Chris@14: { Chris@14: $this->serviceId = $serviceId; Chris@14: Chris@14: parent::__construct($message, $code, $previous); Chris@14: } Chris@14: Chris@14: public function getServiceId() Chris@14: { Chris@14: return $this->serviceId; Chris@14: } Chris@14: }