PHP Class Webmozart\Console\Api\Resolver\CannotResolveCommandException

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

Public Methods

Method Description
nameNotFound ( string $commandName, CommandCollection $commands, Exception $cause = null ) : static Creates an exception for the code {@link NAME_NOT_FOUND}.
noDefaultCommand ( Exception $cause = null ) : static Creates an exception for the code {@link NO_DEFAULT_COMMAND}.

Method Details

nameNotFound() public static method

Suggested alternatives are searched in the passed commands.
public static nameNotFound ( string $commandName, CommandCollection $commands, Exception $cause = null ) : static
$commandName string The command name that was not found.
$commands Webmozart\Console\Api\Command\CommandCollection A list of available commands that is searched for similar names.
$cause Exception The exception that caused this exception.
return static The created exception.

noDefaultCommand() public static method

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