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

RepositoryException   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 1
Metric Value
wmc 1
c 1
b 0
f 1
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
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
}