Completed
Push — master ( 39abe4...b867be )
by Richard
02:31
created

Exception   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
namespace Transphporm;
3
class Exception extends \Exception {
4
    const PROPERTY = 'property';
5
    const TSS_FUNCTION = 'function';
6
    const PSEUDO = 'pseudo';
7
    const FORMATTER = 'formatter';
8
9
    public function __construct(RunException $runException, $file, $line) {
10
        $message = $runException->getMessage() . ' on Line ' . $line . ' of ' . ($file === null ? 'tss' : $file);
11
12
        parent::__construct($message, 0, $runException->getPrevious());
13
    }
14
}
15