IOException::initializeFromError()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 5
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @file
4
 *
5
 * General IO exception.
6
 */
7
8
namespace QueryPath;
9
10
/**
11
 * Indicates that an input/output exception has occurred.
12
 *
13
 * @ingroup querypath_core
14
 */
15
class IOException extends \QueryPath\ParseException
16
{
17
18
    public static function initializeFromError($code, $str, $file, $line, $cxt)
19
    {
20
        $class = __CLASS__;
21
        throw new $class($str, $code, $file, $line);
22
    }
23
}
24