InstanceErrorException::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: sheldon
5
 * Date: 18-6-6
6
 * Time: 下午6:28.
7
 */
8
9
namespace MiotApi\Exception;
10
11
use Exception;
12
13
class InstanceErrorException extends Exception
14
{
15
    public function __toString()
16
    {
17
        return __CLASS__.": [{$this->code}]: {$this->message}\n";
18
    }
19
}
20