Class CannotAddCommandException
Thrown when two commands have the same name.
- Exception
- RuntimeException
- Webmozart\Console\Api\Command\CannotAddCommandException
Namespace: Webmozart\Console\Api\Command
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Command/CannotAddCommandException.php
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Command/CannotAddCommandException.php
public static
static
|
#
nameExists( string $name, Exception $cause = null )
Creates an exception for the code |
public static
static
|
#
optionExists( string $name, Exception $cause = null )
Creates an exception for the code |
public static
static
|
#
nameEmpty( Exception $cause = null )
Creates an exception for the code |
__construct(),
__toString(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
integer |
NAME_EXISTS
Code: A command with the same name exists. |
#
1
|
integer |
OPTION_EXISTS
Code: An option with the same name exists. |
#
2
|
integer |
NAME_EMPTY
Code: The command name is empty. |
#
3
|
$code,
$file,
$line,
$message
|