PHP Class Webmozart\Console\Api\Args\NoSuchArgumentException

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

Method Details

forArgumentName() public static method

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

forPosition() public static method

Creates an exception for the given argument position.
public static forPosition ( integer $position, integer $code, Exception $cause = null ) : static
$position integer The argument position.
$code integer The exception code.
$cause Exception The exception that caused this exception.
return static The created exception.