Skip to content

Commit

Permalink
TASK: Unify exception codes in AbstractView.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns authored Nov 7, 2024
1 parent 7091f57 commit b480d25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neos.Flow/Classes/Mvc/View/AbstractView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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];
Expand All @@ -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;
Expand Down

0 comments on commit b480d25

Please sign in to comment.