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

Breadcrumb

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

class ResolverNotFoundException

Hierarchy

  • class \Symfony\Component\HttpKernel\Exception\ResolverNotFoundException extends \Symfony\Component\HttpKernel\Exception\RuntimeException

Expanded class hierarchy of ResolverNotFoundException

1 file declares its use of ResolverNotFoundException
ArgumentResolver.php in vendor/symfony/http-kernel/Controller/ArgumentResolver.php

File

vendor/symfony/http-kernel/Exception/ResolverNotFoundException.php, line 14

Namespace

Symfony\Component\HttpKernel\Exception
View source
class ResolverNotFoundException extends \RuntimeException {
    
    /**
     * @param string[] $alternatives
     */
    public function __construct(string $name, array $alternatives = []) {
        $msg = \sprintf('You have requested a non-existent resolver "%s".', $name);
        if ($alternatives) {
            if (1 === \count($alternatives)) {
                $msg .= ' Did you mean this: "';
            }
            else {
                $msg .= ' Did you mean one of these: "';
            }
            $msg .= implode('", "', $alternatives) . '"?';
        }
        parent::__construct($msg);
    }

}

Members

Title Sort descending Modifiers Object type Summary
ResolverNotFoundException::__construct public function

API Navigation

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