public function __construct($route, RouteDocument $routeDocument, CustomUrlDocument $customUrl) { parent::__construct(sprintf('Cannot delete current route "%s" of custom-url "%s"', $route, $customUrl->getTitle()), 9000); $this->route = $route; $this->routeDocument = $routeDocument; $this->customUrl = $customUrl; }
public function __construct($baseDomain, array $domainParts, $domain) { parent::__construct(sprintf('Missing domain-part for base-domain "%s" detected. Result domain: "%s"', $baseDomain, $domain), 9003); $this->baseDomain = $baseDomain; $this->domainParts = $domainParts; $this->domain = $domain; }
/** * @param string $message The error message * @param string $field The field which is not * @param int $code */ public function __construct($message, $field, $code = 0) { $this->field = $field; parent::__construct($message, $code); }
public function __construct(KeywordInterface $keyword) { parent::__construct(sprintf('The keyword "%s" is used in multiple categories or translations.', $keyword->getKeyword()), 2002); $this->keyword = $keyword; }
public function __construct($userId, $contentUuid) { parent::__construct(sprintf('Preview of user %s and content %s not found', $userId, $contentUuid), self::EXCEPTION_CODE); $this->contentUuid = $contentUuid; $this->userId = $userId; }
public function __construct(KeywordInterface $keyword) { parent::__construct(sprintf('The keyword "%s" is already in use.', $keyword->getKeyword()), 2001); $this->keyword = $keyword; }
public function __construct($title) { parent::__construct(sprintf('Title "%s" already in use', $title), 9001); $this->title = $title; }