1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 09:57:51 +01:00
amp/lib/CancelledException.php

16 lines
336 B
PHP
Raw Normal View History

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