FileAlreadyExistsException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 3
1
<?php
2
3
namespace Partnermarketing\FileSystemBundle\Exception;
4
5
/**
6
 * Exception to be thrown when a file already exists
7
 */
8
class FileAlreadyExistsException extends \RuntimeException
9
{
10
    public function __construct($key, $code = 0, \Exception $previous = null)
11
    {
12
        parent::__construct(
13
            sprintf('The file %s already exists and can not be overwritten.', $key),
14
            $code,
15
            $previous
16
        );
17
    }
18
}
19