Passed
Push — master ( 0be816...793982 )
by Jean-Christophe
02:53
created

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