Completed
Push — master ( 039dcf...417ea8 )
by Maik
03:08
created

SocketException::__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 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 4
crap 1
1
<?php
2
3
/**
4
 * This file is part of the PHP Generics package.
5
 *
6
 * @package Generics
7
 */
8
namespace Generics\Socket;
9
10
use Generics\GenericsException;
11
use Exception;
12
13
/**
14
 * Derived exception
15
 *
16
 * Will be thrown whenever socket has an exceptional state
17
 *
18
 * @author Maik Greubel <[email protected]>
19
 */
20
class SocketException extends GenericsException
21
{
22
23
    /**
24
     * Create a new SocketException
25
     *
26
     * @param string $message
27
     *            The message to throw; May contain placeholder like {placeholder} and will be replaced by context
28
     *            elements
29
     * @param array $context
30
     *            The context elements to replace in message
31
     * @param number $code
32
     *            Optional code
33
     * @param Exception $previous
34
     *            Optional previous exception
35
     */
36 4
    public function __construct($message, array $context = array(), $code = 0, Exception $previous = null)
37
    {
38 4
        parent::__construct($message, $context, $code, $previous);
39 4
    }
40
}
41