public static function existsAlready($name, Exception $cause = null)
    {
        return new static(sprintf(
            'An option named "%s%s" exists already.',
            strlen($name) > 1 ? '--' : '-',
            $name
        ), 0, $cause);
    }
public static function existsAlready($name, Exception $cause = null)
    {
        return new static(sprintf(
            'An option named "%s%s" exists already.',
            strlen($name) > 1 ? '--' : '-',
            $name
        ), 0, $cause);
    }
public static function existsAlready ( $ name , Exception $ cause = null ) { return new static ( sprintf ( 'An option named "%s%s" exists already.' , strlen ( $ name ) > 1 ? '--' : '-' , $ name ) , 0 , $ cause ) ; }
Creates an exception for a duplicate option.

@param string    $name  The option name.
@param Exception $cause The exception that caused this exception.

@return static The created exception.
Creates an exception for a duplicate option .