2 namespace GuzzleHttp\Exception;
4 use Psr\Http\Message\StreamInterface;
7 * Exception thrown when a seek fails on a stream.
9 class SeekException extends \RuntimeException implements GuzzleException
13 public function __construct(StreamInterface $stream, $pos = 0, $msg = '')
15 $this->stream = $stream;
16 $msg = $msg ?: 'Could not seek the stream to position ' . $pos;
17 parent::__construct($msg);
21 * @return StreamInterface
23 public function getStream()