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; }