Test Failed
Pull Request — develop (#2)
by Andreas
02:59
created

RepositoryException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
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
    public function __construct($message, $innerException = null)
19
    {
20
        parent::__construct($message, 500, $innerException);
21
    }
22
}