1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 13:21:16 +01:00
amp/lib/CancelledException.php

18 lines
340 B
PHP
Raw Normal View History

<?php
namespace Amp;
/**
* Will be thrown in case an operation is cancelled.
*
* @see CancellationToken
* @see CancellationTokenSource
*/
2018-06-18 20:00:01 +02:00
class CancelledException extends \Exception
{
public function __construct(\Throwable $previous = null)
{
2017-06-13 12:41:47 -05:00
parent::__construct("The operation was cancelled", 0, $previous);
}
}