Exception\CommandNotFoundException (Component\Console)

Symfony\Component\Console\Exception\CommandNotFoundException

class CommandNotFoundException extends InvalidArgumentException implements ExceptionInterface

Represents an incorrect command name typed in the console.

Methods

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

Details

public __construct(string $message, array $alternatives = array(), int $code, 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.

public array getAlternatives()

Return Value

array A list of similar defined names.

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Console/Exception/CommandNotFoundException.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部