PHP Класс Webmozart\Console\Api\Command\CannotAddCommandException

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Наследование: extends RuntimeExceptio\RuntimeException
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
nameEmpty ( Exception $cause = null ) : static Creates an exception for the code {@link NAME_EMPTY}.
nameExists ( string $name, Exception $cause = null ) : static Creates an exception for the code {@link NAME_EXISTS}.
optionExists ( string $name, Exception $cause = null ) : static Creates an exception for the code {@link OPTION_EXISTS}.

Описание методов

nameEmpty() публичный статический Метод

Creates an exception for the code {@link NAME_EMPTY}.
public static nameEmpty ( Exception $cause = null ) : static
$cause Exception The exception that caused this exception.
Результат static The created exception.

nameExists() публичный статический Метод

Creates an exception for the code {@link NAME_EXISTS}.
public static nameExists ( string $name, Exception $cause = null ) : static
$name string The command name.
$cause Exception The exception that caused this exception.
Результат static The created exception.

optionExists() публичный статический Метод

Creates an exception for the code {@link OPTION_EXISTS}.
public static optionExists ( string $name, Exception $cause = null ) : static
$name string The command name.
$cause Exception The exception that caused this exception.
Результат static The created exception.