1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
amp/lib/DisposedException.php

16 lines
386 B
PHP
Raw Normal View History

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