Exception   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A logException() 0 5 1
1
<?php
2
/**
3
 * Jaeger
4
 *
5
 * @copyright	Copyright (c) 2015-2016, mithra62
6
 * @link		http://jaeger-app.com
7
 * @version		1.0
8
 * @filesource 	./Exception.php
9
 */
10
namespace JaegerApp;
11
12
use Phine\Exception\Exception as Phine;
13
use JaegerApp\Traits\Log;
14
15
/**
16
 * Jaeger - Exception Object
17
 *
18
 * Handles exceptions within the mithra62 system
19
 *
20
 * @package Exceptions
21
 * @author Eric Lamb <[email protected]>
22
 */
23
class Exception extends Phine
24
{
25
    use Log;
26
27
    /**
28
     * Logs an exeption
29
     * 
30
     * @param \Exception $e            
31
     * @return bool
32
     */
33
    public function logException(\Exception $e)
34
    {
35
        $error = $e->getMessage() . $e->getTraceAsString();
36
        return $this->logEmergency($error);
37
    }
38
}