Passed
Push — develop ( b02061...820347 )
by Andreas
03:07
created

JSONException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
namespace Wambo\Catalog\Exception;
3
4
/**
5
 * Class JSONException handles JSON-related errors.
6
 *
7
 * @package Wambo\Catalog
8
 */
9
class JSONException extends \Exception
10
{
11
    /**
12
     * JSONException constructor.
13
     *
14
     * @param string     $message        An error message
15
     * @param \Exception $innerException The underlying exception (optional)
16
     */
17
    public function __construct($message, $innerException = null)
18
    {
19
        parent::__construct($message, 500, $innerException);
20
    }
21
}