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

20 lines
372 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()
*/
2018-06-18 20:00:01 +02:00
class TimeoutException extends \Exception
{
/**
* @param string|null $message Exception message.
*/
2018-06-18 20:00:01 +02:00
public function __construct(string $message = "Operation timed out")
{
parent::__construct($message);
}
}