Passed
Push — master ( a9e4c3...f94168 )
by Steffen
02:00
created

DmnValidationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SteffenBrand\DmnDecisionTables\Exception;
4
5
/**
6
 * Class DmnValidationException
7
 * @package SteffenBrand\DmnDecisionTables\Exception
8
 */
9
class DmnValidationException extends \UnexpectedValueException
10
{
11
    /**
12
     * DmnValidationException constructor.
13
     * @param array $errors
14
     */
15
    public function __construct($errors)
16
    {
17
        parent::__construct(sprintf('Errors while building decision table: %s', json_encode($errors)));
18
    }
19
}