1
0
mirror of https://github.com/danog/byte-stream.git synced 2024-12-11 17:09:43 +01:00
byte-stream/lib/PendingReadError.php

18 lines
458 B
PHP
Raw Normal View History

<?php
namespace Amp\ByteStream;
2017-05-07 22:14:45 +02:00
/**
* Thrown in case a second read operation is attempted while another read operation is still pending.
*/
2018-09-21 22:45:13 +02:00
final class PendingReadError extends \Error
{
public function __construct(
string $message = "The previous read operation must complete before read can be called again",
int $code = 0,
\Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
2017-05-07 22:14:45 +02:00
}