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

LoadUnvalidObjectsException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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