SruErrorException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php namespace Scriptotek\Sru\Exceptions;
2
3
class SruErrorException extends \Exception
4
{
5
	public $uri;
6
    public $requestUrl;
7
8
    /**
9
     * @param string $message
10
     * @param string $uri
11
     * @param string $requestUrl
12
     */
13
    public function __construct($message, $uri, $requestUrl)
14
    {
15
        parent::__construct("Request to $requestUrl failed with error: $message");
16
        $this->uri = $uri;
17
        $this->requestUrl = $requestUrl;
18
    }
19
}
20