UnableToSeekException::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 5
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Furious\Psr7\Exception;
6
7
use Throwable;
8
9
class UnableToSeekException extends RuntimeException
10
{
11
    public function __construct(int $offset, int $whence, $message = '', $code = 0, Throwable $previous = null)
12
    {
13
        parent::__construct($message, $code, $previous);
14
        if ($message === '') {
15
            $this->message = 'Unable to seek to stream position ' . $offset . ' with whence ' . var_export($whence, true);
16
        }
17
    }
18
}