Exception::logException()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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
}