Completed
Push — master ( bc22ae...7ba31f )
by Dominik
02:12
created

NotImportableException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 3
1
<?php
2
3
namespace Saxulum\ModelImporter;
4
5
class NotImportableException extends \Exception
6
{
7
    /**
8
     * @param string          $action
9
     * @param int             $code
10
     * @param \Exception|null $previous
11
     */
12
    public function __construct($action, $code = 0, \Exception $previous = null)
13
    {
14
        parent::__construct(
15
            sprintf('Model with identifier {identifier} is not importable, cause %s failed', $action),
16
            $code,
17
            $previous
18
        );
19
    }
20
}
21