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

CatalogException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 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
}