Completed
Push — master ( f65a3b...39845e )
by Mathieu
21s queued 12s
created

LoadUnvalidObjectsException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Smart\EtlBundle\Exception\Loader;
4
5
use Symfony\Component\HttpFoundation\Response;
6
7
/**
8
 * @author Mathieu Ducrot <[email protected]>
9
 */
10
class LoadUnvalidObjectsException extends LoaderException
11
{
12
    /**
13
     * remove EtlException message prefix to only have dot notation format so that once the bundle is register on a
14
     * project, developer can rely on translation
15
     */
16
    protected $message = '%s';
17
18
    public array $arrayValidationErrors;
19
20
    public function __construct(array $arrayValidationErrors)
21
    {
22
        $this->arrayValidationErrors = $arrayValidationErrors;
23
24
        parent::__construct(
25
            'smart_etl.loader.load_unvalid_objects_error',
26
            Response::HTTP_INTERNAL_SERVER_ERROR,
27
            null
28
        );
29
    }
30
}
31