Code Duplication    Length = 9-9 lines in 2 locations

API/Exception/AfterMigrationExecutionException.php 1 location

@@ 5-13 (lines=9) @@
2
3
namespace Kaliop\eZMigrationBundle\API\Exception;
4
5
class AfterMigrationExecutionException extends \Exception
6
{
7
    public function __construct($message = "", $step = 0, \Exception $previous = null)
8
    {
9
        $message = "Error after execution of step $step: " . $message;
10
11
        parent::__construct($message, $step, $previous);
12
    }
13
}
14

API/Exception/MigrationStepExecutionException.php 1 location

@@ 5-13 (lines=9) @@
2
3
namespace Kaliop\eZMigrationBundle\API\Exception;
4
5
class MigrationStepExecutionException extends \Exception
6
{
7
    public function __construct($message = "", $step = 0, \Exception $previous = null)
8
    {
9
        $message = "Error in execution of step $step: " . $message;
10
11
        parent::__construct($message, $step, $previous);
12
    }
13
}
14