Completed
Pull Request — develop (#39)
by Sam
02:08
created

IndexExistsException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 3
1
<?php
2
3
namespace Nord\Lumen\Elasticsearch\Exceptions;
4
5
/**
6
 * Class IndexExistsException
7
 * @package Nord\Lumen\Elasticsearch\Exceptions
8
 */
9
class IndexExistsException extends Exception
10
{
11
12
    /**
13
     * @inheritdoc
14
     */
15
    public function __construct($index, $code = 0, \Exception $previous = null)
16
    {
17
        parent::__construct(sprintf('The index %s already exists', $index), $code, $previous);
18
    }
19
}
20