Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnexpectedValueException.php

class UnexpectedValueException

Same name in this branch
  1. 11.1.x vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php \Doctrine\Instantiator\Exception\UnexpectedValueException
  2. 11.1.x vendor/php-http/guzzle7-adapter/src/Exception/UnexpectedValueException.php \Http\Adapter\Guzzle7\Exception\UnexpectedValueException
  3. 11.1.x vendor/symfony/serializer/Exception/UnexpectedValueException.php \Symfony\Component\Serializer\Exception\UnexpectedValueException
  4. 11.1.x vendor/symfony/browser-kit/Exception/UnexpectedValueException.php \Symfony\Component\BrowserKit\Exception\UnexpectedValueException
  5. 11.1.x vendor/symfony/http-foundation/Exception/UnexpectedValueException.php \Symfony\Component\HttpFoundation\Exception\UnexpectedValueException

@author Christian Flothmann <christian.flothmann@sensiolabs.de>

Hierarchy

  • class \Symfony\Component\Validator\Exception\RuntimeException extends \Symfony\Component\Validator\Exception\RuntimeException implements \Symfony\Component\Validator\Exception\ExceptionInterface
    • class \Symfony\Component\Validator\Exception\RuntimeException extends \Symfony\Component\Validator\Exception\RuntimeException implements \Symfony\Component\Validator\Exception\ExceptionInterface
      • class \Symfony\Component\Validator\Exception\ValidatorException extends \Symfony\Component\Validator\Exception\RuntimeException
        • class \Symfony\Component\Validator\Exception\UnexpectedTypeException extends \Symfony\Component\Validator\Exception\ValidatorException
          • class \Symfony\Component\Validator\Exception\UnexpectedValueException extends \Symfony\Component\Validator\Exception\UnexpectedTypeException

Expanded class hierarchy of UnexpectedValueException

43 files declare their use of UnexpectedValueException
AllValidator.php in vendor/symfony/validator/Constraints/AllValidator.php
BicValidator.php in vendor/symfony/validator/Constraints/BicValidator.php
CharsetValidator.php in vendor/symfony/validator/Constraints/CharsetValidator.php
ChoiceValidator.php in vendor/symfony/validator/Constraints/ChoiceValidator.php
CidrValidator.php in vendor/symfony/validator/Constraints/CidrValidator.php

... See full list

File

vendor/symfony/validator/Exception/UnexpectedValueException.php, line 17

Namespace

Symfony\Component\Validator\Exception
View source
class UnexpectedValueException extends UnexpectedTypeException {
    public function __construct(mixed $value, string $expectedType) {
        parent::__construct($value, $expectedType);
    }
    public function getExpectedType() : string {
        return $this->expectedType;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
UnexpectedValueException::getExpectedType public function
UnexpectedValueException::__construct public function Overrides UnexpectedTypeException::__construct

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal