Completed
Branch master (f94168)
by Steffen
03:41 queued 01:40
created

DmnConversionException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 10
c 1
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 DmnConversionException
7
 * @package SteffenBrand\DmnDecisionTables\Exception
8
 */
9
class DmnConversionException extends \UnexpectedValueException
10
{
11
    /**
12
     * DmnConversionException constructor.
13
     * @param array $errors
14
     */
15
    public function __construct($errors)
16
    {
17
        parent::__construct(sprintf('Errors while generating DMN file: %s', json_encode($errors)));
18
    }
19
}