Completed
Pull Request — master (#374)
by Leny
28:15 queued 21:44
created

IdentifierNotDefinedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

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