PHP Class Webmozart\Console\Api\Args\CannotAddArgumentException

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
cannotAddAfterMultiValued ( Exception $cause = null ) : static Creates an exception with code {@link ADD_AFTER_MULTI_VALUED}.
cannotAddRequiredAfterOptional ( Exception $cause = null ) : static Creates an exception with code {@link ADD_REQUIRED_AFTER_OPTIONAL}.
existsAlready ( string $name, Exception $cause = null ) : static Creates an exception with code {@link EXISTS_ALREADY}.

Method Details

cannotAddAfterMultiValued() public static method

Creates an exception with code {@link ADD_AFTER_MULTI_VALUED}.
public static cannotAddAfterMultiValued ( Exception $cause = null ) : static
$cause Exception The exception that caused this exception.
return static The created exception.

cannotAddRequiredAfterOptional() public static method

Creates an exception with code {@link ADD_REQUIRED_AFTER_OPTIONAL}.
public static cannotAddRequiredAfterOptional ( Exception $cause = null ) : static
$cause Exception The exception that caused this exception.
return static The created exception.

existsAlready() public static method

Creates an exception with code {@link EXISTS_ALREADY}.
public static existsAlready ( string $name, Exception $cause = null ) : static
$name string The argument name.
$cause Exception The exception that caused this exception.
return static The created exception.