Passed
Push — develop ( 2b439f...206340 )
by René
02:58
created

CatalogException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

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 3
cts 3
cp 1
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 CatalogException handles catalog-related errors.
6
 *
7
 * @package Wambo\Catalog
8
 */
9
class CatalogException extends \Exception
10
{
11
    /**
12
     * CatalogException constructor.
13
     *
14
     * @param string     $message        An error message
15
     * @param \Exception $innerException The underlying exception (optional)
16
     */
17 12
    public function __construct($message, $innerException = null)
18
    {
19 12
        parent::__construct($message, 500, $innerException);
20
    }
21
}