Passed
Pull Request — master (#116)
by Arnaud
05:44 queued 02:35
created

FieldTypeNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace LAG\AdminBundle\Exception\Field;
4
5
use Exception;
6
7
class FieldTypeNotFoundException extends Exception
8
{
9
    public function __construct(string $adminName, string $actionName, string $fieldName)
10
    {
11
        $message = sprintf(
12
            'No type found for the Field "%s" in Action "%s" in Admin "%s"',
13
            $fieldName,
14
            $adminName,
15
            $actionName
16
        );
17
18
        parent::__construct($message, 500);
19
    }
20
}
21