Completed
Push — master ( 217daa...4e747b )
by Siim
11:32
created

RequestNotCreatedException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 14.02.19
6
 * Time: 7:48
7
 */
8
9
namespace Sf4\Api\Exception;
10
11
use Throwable;
12
13
class RequestNotCreatedException extends \Exception
14
{
15
    public function __construct(string $message = "", int $code = 0, Throwable $previous = null)
16
    {
17
        if (empty($message)) {
18
            $message = 'Invalid request file';
19
        }
20
        parent::__construct($message, $code, $previous);
21
    }
22
}
23