Open Journal Systems  3.3.0
SeekException.php
1 <?php
2 namespace GuzzleHttp\Exception;
3 
5 
9 class SeekException extends \RuntimeException implements GuzzleException
10 {
11  private $stream;
12 
13  public function __construct(StreamInterface $stream, $pos = 0, $msg = '')
14  {
15  $this->stream = $stream;
16  $msg = $msg ?: 'Could not seek the stream to position ' . $pos;
17  parent::__construct($msg);
18  }
19 
23  public function getStream()
24  {
25  return $this->stream;
26  }
27 }
Psr\Http\Message\StreamInterface
Definition: vendor/psr/http-message/src/StreamInterface.php:12
GuzzleHttp\Exception\SeekException
Definition: SeekException.php:9
GuzzleHttp\Exception
Definition: vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:2
GuzzleHttp\Exception\SeekException\getStream
getStream()
Definition: SeekException.php:23
GuzzleHttp\Exception\SeekException\__construct
__construct(StreamInterface $stream, $pos=0, $msg='')
Definition: SeekException.php:13