1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/src/CancelledException.php
2021-12-02 22:24:56 +01:00

18 lines
333 B
PHP

<?php
namespace Amp;
/**
* Will be thrown in case an operation is cancelled.
*
* @see Cancellation
* @see DeferredCancellation
*/
class CancelledException extends \Exception
{
public function __construct(?\Throwable $previous = null)
{
parent::__construct("The operation was cancelled", 0, $previous);
}
}