PHP Class Webmozart\Console\Api\Command\CannotAddCommandException

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends RuntimeExceptio\RuntimeException
Mostra file Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
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}.

Method Details

nameEmpty() public static method

Creates an exception for the code {@link NAME_EMPTY}.
public static nameEmpty ( Exception $cause = null ) : static
$cause Exception The exception that caused this exception.
return static The created exception.

nameExists() public static method

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.
return static The created exception.

optionExists() public static method

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.
return static The created exception.