PHP Class Webmozart\Console\Api\Args\CannotAddOptionException

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
existsAlready ( string $name, Exception $cause = null ) : static Creates an exception for a duplicate option.

Method Details

existsAlready() public static method

Creates an exception for a duplicate option.
public static existsAlready ( string $name, Exception $cause = null ) : static
$name string The option name.
$cause Exception The exception that caused this exception.
return static The created exception.