2016-12-29 14:09:49 -06:00
|
|
|
<?php
|
2016-08-15 23:46:26 -05:00
|
|
|
|
2016-05-24 10:39:19 -05:00
|
|
|
namespace Amp;
|
2016-05-21 09:44:52 -05: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 14:35:58 -05:00
|
|
|
class TimeoutException extends \Exception {
|
2016-05-22 10:53:13 -05:00
|
|
|
/**
|
2017-04-23 15:29:08 +02:00
|
|
|
* @param string|null $message Exception message.
|
2016-05-22 10:53:13 -05:00
|
|
|
*/
|
2017-04-23 15:29:08 +02:00
|
|
|
public function __construct(string $message = "Operation timed out") {
|
|
|
|
parent::__construct($message);
|
2016-05-22 10:53:13 -05:00
|
|
|
}
|
|
|
|
}
|