2016-12-29 21:09:49 +01:00
|
|
|
<?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
|
|
|
|
2017-04-23 15:29:08 +02:00
|
|
|
/**
|
|
|
|
* Thrown if a promise doesn't resolve within a specified timeout.
|
|
|
|
*
|
|
|
|
* @see \Amp\Promise\timeout()
|
|
|
|
*/
|
2018-06-18 20:00:01 +02:00
|
|
|
class TimeoutException extends \Exception
|
|
|
|
{
|
2016-05-22 17:53:13 +02:00
|
|
|
/**
|
2020-03-28 14:32:53 +01:00
|
|
|
* @param string $message Exception message.
|
2016-05-22 17:53:13 +02:00
|
|
|
*/
|
2018-06-18 20:00:01 +02:00
|
|
|
public function __construct(string $message = "Operation timed out")
|
|
|
|
{
|
2017-04-23 15:29:08 +02:00
|
|
|
parent::__construct($message);
|
2016-05-22 17:53:13 +02:00
|
|
|
}
|
|
|
|
}
|