Completed
Push — master ( 21ab66...244a83 )
by Jacques
19s queued 12s
created

UiElementNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MonsieurBiz\SyliusRichEditorPlugin\Exception;
5
6
final class UiElementNotFoundException extends \Exception
7
{
8
    /**
9
     * UiElementNotFoundException constructor.
10
     *
11
     * @param string $type
12
     * @param \Exception|null $previous
13
     */
14
    public function __construct(string $type, ?\Exception $previous = null)
15
    {
16
        parent::__construct(sprintf('UiElement with type "%s" could not be found!', $type), 0, $previous);
17
    }
18
}
19