Passed
Pull Request — develop (#2)
by Andreas
05:17
created

RepositoryException::__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 1
Metric Value
c 1
b 0
f 1
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
3
namespace Wambo\Catalog\Exception;
4
5
/**
6
 * Class ProductException handles ProductRepository-related errors.
7
 *
8
 * @package Wambo\Catalog
9
 */
10
class RepositoryException extends \Exception
11
{
12
    /**
13
     * RepositoryException constructor.
14
     *
15
     * @param string     $message        An error message
16
     * @param \Exception $innerException The underlying exception (optional)
17
     */
18 1
    public function __construct($message, $innerException = null)
19
    {
20 1
        parent::__construct($message, 500, $innerException);
21
    }
22
}