PHP Class Webmozart\Console\Api\Command\NoSuchCommandException

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
forCommandName ( string $name, integer $code, Exception $cause = null ) : static Creates an exception for the given command name.

Method Details

forCommandName() public static method

Creates an exception for the given command name.
public static forCommandName ( string $name, integer $code, Exception $cause = null ) : static
$name string The command name.
$code integer The exception code.
$cause Exception The exception that caused this exception.
return static The created exception.