Completed
Push — master ( e72458...99f4f0 )
by Karthik
15:24
created

InvalidCraftLevelException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
3
namespace cyberinferno\Cabal\Helpers\Exceptions;
4
5
/**
6
 * Class InvalidCraftLevelException
7
 *
8
 * Exception thrown if craft level being set is invalid
9
 *
10
 * @package cyberinferno\Cabal\Helpers\Exceptions
11
 * @author Karthik P
12
 */
13
class InvalidCraftLevelException extends \Exception
14
{
15
    public function __construct($message = '', $code = 0, \Exception $previous = null) {
16
        if (empty($message)) {
17
            $message = 'Invalid craft level';
18
        }
19
        parent::__construct($message, $code, $previous);
20
    }
21
}