diff --git a/src/AbstractValueParser.php b/src/AbstractValueParser.php index af010ab..5554afd 100644 --- a/src/AbstractValueParser.php +++ b/src/AbstractValueParser.php @@ -55,7 +55,7 @@ public function required($invalidValueMessage = null, $notFoundMessage = null) $notFoundMessage = $this->config->getExceptionMessageFactory()->createNotFoundMessage($this->name); } - throw $this->config->getExceptionFactory()->createInvalidValueException($notFoundMessage); + throw $this->config->getExceptionFactory()->createNotFoundException($notFoundMessage); } return $this->value;