Completed
Push — master ( 08c314...daca94 )
by Jean-Christophe
01:29
created

UbiquityException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 4 1
1
<?php
2
3
namespace micro\exceptions;
4
5
6
class UbiquityException extends \Exception{
7
	public function __construct($message=null,$code=null,$previous=null){
8
		parent::__construct($message, $code, $previous);
9
	}
10
11
	public function __toString(){
12
		return get_class($this) . " '{$this->message}' in {$this->file}({$this->line})\n"
13
		. "{$this->getTraceAsString()}";
14
	}
15
}