Passed
Push — main ( 4a7e3a...3581c6 )
by Jean-Christophe
04:00
created

VueException::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
b 0
f 1
1
<?php
2
3
4
namespace PHPMV\exceptions;
5
6
7
8
class VueException extends \Exception {
9
	public function __construct($message = '', $code = 0, \Throwable $previous = null) {
10
		parent::__construct($message, $code, $previous);
11
	}
12
13
	public function __toString(): string {
14
		return \get_class($this) . " '{$this->message}' in {$this->file}({$this->line})".\PHP_EOL
15
			. "{$this->getTraceAsString()}";
16
	}
17
18
}