Passed
Push — master ( 9bff90...0f9bce )
by Php Easy Api
02:38
created

NotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Resta\Exception;
4
5
use Exception;
6
use Throwable;
7
8
class NotFoundException extends Exception
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $lang = 'notFoundException';
14
15
    /**
16
     * NotFoundException constructor.
17
     *
18
     * @param string $message
19
     * @param int $code
20
     * @param Throwable|null $previous
21
     */
22
    public function __construct($message = "The requested endpoint was not found.", $code = 404, Throwable $previous = null)
23
    {
24
        parent::__construct($message, $code, $previous);
25
    }
26
}