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

DmnValidationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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