Completed
Pull Request — master (#374)
by Leny
06:25
created

IdentifierNotDefinedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace Victoire\Bundle\CoreBundle\Exception;
4
5
class IdentifierNotDefinedException extends \Exception
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    public function __construct($identifiers, $message = '', $code = 450, \Exception $previous = null)
11
    {
12
        $message = sprintf(
13
            'The following identifiers are not defined as well, (%s)
14
                    you need to add the following lines on your businessEntity properties:
15
                    <br> <pre>@VIC\BusinessProperty("businessParameter")</pre>',
16
            implode($identifiers, ', ')
17
        );
18
        parent::__construct($message, $code, $previous);
19
    }
20
}
21