General   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
namespace UAPAY\Exception;
3
4
use UAPAY\Log as Log;
5
6
class General extends \RuntimeException implements EInterface
7
{
8
    /**
9
     *      Constructor
10
     *
11
     *      @param string $message
12
     *      @param \Throwable $previous
13
     */
14
    public function __construct($message, \Exception $previous=null, $tracelog=false)
15
    {
16
        Log::instance()->error($message.(($tracelog)?PHP_EOL.$this->getTraceAsString():null));
17
        $code = 0;
18
        parent::__construct($message, $code, $previous);
19
    }
20
}
21