FileNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 3
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace cyberinferno\Cabal\Helpers\Exceptions;
4
5
/**
6
 * Class FileNotFoundException
7
 *
8
 * Exception thrown when a specified file was not found or could not be accessed
9
 *
10
 * @package cyberinferno\Cabal\Helpers\Exceptions
11
 * @author Karthik P
12
 */
13
class FileNotFoundException extends \Exception
14
{
15
    public function __construct($message = '', $code = 0, \Exception $previous = null) {
16
        if (empty($message)) {
17
            $message = 'File not found';
18
        }
19
        parent::__construct($message, $code, $previous);
20
    }
21
}