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()
|
|
|
|
*/
|
2016-08-11 21:35:58 +02:00
|
|
|
class TimeoutException extends \Exception {
|
2016-05-22 17:53:13 +02:00
|
|
|
/**
|
2017-04-23 15:29:08 +02:00
|
|
|
* @param string|null $message Exception message.
|
2016-05-22 17:53:13 +02:00
|
|
|
*/
|
2017-04-23 15:29:08 +02:00
|
|
|
public function __construct(string $message = "Operation timed out") {
|
|
|
|
parent::__construct($message);
|
2016-05-22 17:53:13 +02:00
|
|
|
}
|
|
|
|
}
|