Class CannotAddArgumentException
Thrown when an argument cannot be added.
- Exception
- RuntimeException
- Webmozart\Console\Api\Args\CannotAddArgumentException
Namespace: Webmozart\Console\Api\Args
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Args/CannotAddArgumentException.php
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Args/CannotAddArgumentException.php
public static
static
|
#
existsAlready( string $name, Exception $cause = null )
Creates an exception with code |
public static
static
|
#
cannotAddAfterMultiValued( Exception $cause = null )
Creates an exception with code ADD_AFTER_MULTI_VALUED. |
public static
static
|
#
cannotAddRequiredAfterOptional( Exception $cause = null )
Creates an exception with code ADD_REQUIRED_AFTER_OPTIONAL. |
__construct(),
__toString(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
integer |
EXISTS_ALREADY
Code: The argument exists already. |
#
1
|
integer |
MULTI_VALUED_EXISTS
Code: An argument was added after a multi-valued argument. |
#
2
|
integer |
REQUIRED_AFTER_OPTIONAL
Code: A required argument was added after an optional argument. |
#
3
|
$code,
$file,
$line,
$message
|