W3cubDocs

/Symfony 4.1

NamespaceNotFoundException

class NamespaceNotFoundException extends CommandNotFoundException

Represents an incorrect namespace typed in the console.

Methods

__construct(string $message, array $alternatives = array(), int $code = 0, Exception $previous = null) from CommandNotFoundException
array getAlternatives() from CommandNotFoundException

Details

__construct(string $message, array $alternatives = array(), int $code = 0, Exception $previous = null)

Parameters

string $message Exception message to throw
array $alternatives List of similar defined names
int $code Exception code
Exception $previous Previous exception used for the exception chaining

array getAlternatives()

Return Value

array A list of similar defined names

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Exception/NamespaceNotFoundException.html