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

IdentifierNotDefinedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 9
rs 9.6666
c 1
b 0
f 1
cc 1
eloc 5
nc 1
nop 4
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
}