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

NotImportableException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 16
rs 10

1 Method

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