Completed
Push — master ( 5d0f9f...7d804c )
by Maksim
12:58
created

NotSupportedMultiUnitFieldUnit::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace MaksimM\MultiUnitModels\Exceptions;
4
5
use Throwable;
6
7
class NotSupportedMultiUnitFieldUnit extends \Exception
8
{
9
    public function __construct($field, $unit, $code = 0, Throwable $previous = null)
10
    {
11
        parent::__construct('Requested field "'.$field.'" doesn\'t support ' . $unit, $code, $previous);
12
    }
13
}
14