From b480d257be14326cb7b547a257e3cc5b828caf5e Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Thu, 7 Nov 2024 21:48:38 +0100 Subject: [PATCH] TASK: Unify exception codes in AbstractView.php --- Neos.Flow/Classes/Mvc/View/AbstractView.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Neos.Flow/Classes/Mvc/View/AbstractView.php b/Neos.Flow/Classes/Mvc/View/AbstractView.php index 858d11ee70..237b5e03f9 100644 --- a/Neos.Flow/Classes/Mvc/View/AbstractView.php +++ b/Neos.Flow/Classes/Mvc/View/AbstractView.php @@ -84,7 +84,7 @@ public function __construct(array $options = []) $this->supportedOptions, function ($supportedOptionData, $supportedOptionName, $options) { if (isset($supportedOptionData[3]) && !array_key_exists($supportedOptionName, $options)) { - throw new Exception('Required view option not set: ' . $supportedOptionName, 1359625876); + throw new Exception('Required view option not set: ' . $supportedOptionName, 1359625877); } }, $options @@ -112,7 +112,7 @@ function ($value) { public function getOption($optionName) { if (!array_key_exists($optionName, $this->supportedOptions)) { - throw new Exception(sprintf('The view option "%s" you\'re trying to get doesn\'t exist in class "%s".', $optionName, get_class($this)), 1359625876); + throw new Exception(sprintf('The view option "%s" you\'re trying to get doesn\'t exist in class "%s".', $optionName, get_class($this)), 1359625878); } return $this->options[$optionName]; @@ -129,7 +129,7 @@ public function getOption($optionName) public function setOption($optionName, $value) { if (!array_key_exists($optionName, $this->supportedOptions)) { - throw new Exception(sprintf('The view option "%s" you\'re trying to set doesn\'t exist in class "%s".', $optionName, get_class($this)), 1359625876); + throw new Exception(sprintf('The view option "%s" you\'re trying to set doesn\'t exist in class "%s".', $optionName, get_class($this)), 1359625879); } $this->options[$optionName] = $value;