Exception::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * DronePHP (http://www.dronephp.com)
4
 *
5
 * @link      http://github.com/Pleets/DronePHP
6
 * @copyright Copyright (c) 2016-2018 Pleets. (http://www.pleets.org)
7
 * @license   http://www.dronephp.com/license
8
 * @author    Darío Rivera <[email protected]>
9
 */
10
11
namespace Drone\Exception;
12
13
/**
14
 * Exception class
15
 *
16
 * This is a standard exception that implements StorableTrait. Developers can use
17
 * this exception to separate controller exceptions in the business logic.
18
 */
19
class Exception extends \Exception
20
{
21
    use \Drone\Exception\StorableTrait;
22
23
    /**
24
     * Constructor
25
     *
26
     * @param string         $message
27
     * @param integer        $code
28
     * @param Exception|null $previous
29
     *
30
     * @return null
31
     */
32 3
    public function __construct($message, $code = 0, Exception $previous = null)
33
    {
34 3
        parent::__construct($message, $code, $previous);
35 3
    }
36
}
37