Passed
Push — master ( 945dc8...ec757f )
by Mike
02:50
created

SDKException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
ccs 6
cts 6
cp 1
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 2
1
<?php
2
/**
3
 * ©[2016] SugarCRM Inc.  Licensed by SugarCRM under the Apache 2.0 license.
4
 */
5
6
namespace SugarAPI\SDK\Exception;
7
8
class SDKException extends \Exception {
9
10
    protected $default_message = 'Unknown SDK Exception occurred.';
11
12 1
    public function __construct($message = '') {
13 1
        if (empty($message)){
14 1
            $message = $this->default_message;
15 1
        }
16 1
        parent::__construct($message);
17 1
    }
18
19
}