1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/DisposedException.php

16 lines
380 B
PHP
Raw Normal View History

2020-05-13 10:15:21 -05:00
<?php
namespace Amp;
/**
2020-05-28 12:59:55 -05:00
* Will be thrown from {@see StreamSource::emit()} or the emit callable provided by {@see AsyncGenerator} if the
2020-05-13 10:15:21 -05:00
* associated stream is destroyed.
*/
final class DisposedException extends \Exception
{
public function __construct(\Throwable $previous = null)
{
parent::__construct("The stream has been disposed", 0, $previous);
}
}