Completed
Push — master ( 151f0a...78c835 )
by Thomas
01:46
created

FailedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of php-task library.
5
 *
6
 * (c) php-task
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Task\Executor;
13
14
/**
15
 * Will be thrown by RetryTaskHandler to indicate that the current run was failed and should not be retried.
16
 */
17
class FailedException extends \Exception
18
{
19 1
    public function __construct(\Exception $previous)
20
    {
21 1
        parent::__construct($previous->getMessage(), $previous->getCode(), $previous);
22 1
    }
23
}
24