ValidationException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 4
crap 1
1
<?php
2
/**
3
 * This file is part of the Ray.WebFormModule package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Ray\WebFormModule\Exception;
8
9
use Ray\WebFormModule\FormValidationError;
10
11
class ValidationException extends \Exception
12
{
13
    public $error;
14
15 4
    public function __construct($message = '', $code = 0, \Exception $e = null, FormValidationError $error = null)
16
    {
17 4
        parent::__construct($message, $code, $e);
18 4
        $this->error = $error;
19 4
    }
20
}
21