BadResponseException.php
3 years ago
ClientException.php
3 years ago
ConnectException.php
3 years ago
GuzzleException.php
3 years ago
InvalidArgumentException.php
3 years ago
RequestException.php
3 years ago
SeekException.php
3 years ago
ServerException.php
3 years ago
TooManyRedirectsException.php
3 years ago
TransferException.php
3 years ago
SeekException.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPMailSMTP\Vendor\GuzzleHttp\Exception; |
| 4 | |
| 5 | use WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface; |
| 6 | /** |
| 7 | * Exception thrown when a seek fails on a stream. |
| 8 | */ |
| 9 | class SeekException extends \RuntimeException implements \WPMailSMTP\Vendor\GuzzleHttp\Exception\GuzzleException |
| 10 | { |
| 11 | private $stream; |
| 12 | public function __construct(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, $pos = 0, $msg = '') |
| 13 | { |
| 14 | $this->stream = $stream; |
| 15 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; |
| 16 | parent::__construct($msg); |
| 17 | } |
| 18 | /** |
| 19 | * @return StreamInterface |
| 20 | */ |
| 21 | public function getStream() |
| 22 | { |
| 23 | return $this->stream; |
| 24 | } |
| 25 | } |
| 26 |