public function __construct($categoryKey) { parent::__construct(sprintf('The category with the key "%s" does not exist.', $categoryKey)); $this->categoryKey = $categoryKey; }