1
0
mirror of https://github.com/danog/amp.git synced 2024-12-12 09:29:45 +01:00
amp/lib/TimeoutException.php

18 lines
368 B
PHP
Raw Normal View History

<?php
2016-08-16 06:46:26 +02:00
2016-05-24 17:39:19 +02:00
namespace Amp;
2016-05-21 16:44:52 +02:00
/**
* Thrown if a promise doesn't resolve within a specified timeout.
*
* @see \Amp\Promise\timeout()
*/
2016-08-11 21:35:58 +02:00
class TimeoutException extends \Exception {
/**
* @param string|null $message Exception message.
*/
public function __construct(string $message = "Operation timed out") {
parent::__construct($message);
}
}