* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Exception; use Exception; /** * Exception thrown when a service definition failed. */ class ServiceDefinitionException extends Exception { /** * @var string */ public $serviceId; /** * @param string $message * @param string $serviceId * @param int $code * @param Exception $previous */ public function __construct($message, $serviceId, $code = 0, Exception $previous = null) { $this->serviceId = $serviceId; parent::__construct($message, $code, $previous); } }