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

Breadcrumb

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

class ValidationFailedException

@author Jan Vernieuwe <jan.vernieuwe@phpro.be>

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\ValidationFailedException extends \Symfony\Component\Validator\Exception\RuntimeException

Expanded class hierarchy of ValidationFailedException

5 files declare their use of ValidationFailedException
InputConfigurator.php in core/lib/Drupal/Core/Recipe/InputConfigurator.php
ProblemNormalizer.php in vendor/symfony/serializer/Normalizer/ProblemNormalizer.php
RecipeInputFormTrait.php in core/lib/Drupal/Core/Recipe/RecipeInputFormTrait.php
RequestPayloadValueResolver.php in vendor/symfony/http-kernel/Controller/ArgumentResolver/RequestPayloadValueResolver.php
Validation.php in vendor/symfony/validator/Validation.php

File

vendor/symfony/validator/Exception/ValidationFailedException.php, line 19

Namespace

Symfony\Component\Validator\Exception
View source
class ValidationFailedException extends RuntimeException {
    public function __construct(mixed $value, ConstraintViolationListInterface $violations) {
        parent::__construct($violations);
    }
    public function getValue() : mixed {
        return $this->value;
    }
    public function getViolations() : ConstraintViolationListInterface {
        return $this->violations;
    }

}

Members

Title Sort descending Modifiers Object type Summary
ValidationFailedException::getValue public function
ValidationFailedException::getViolations public function
ValidationFailedException::__construct public function

API Navigation

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