mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +01:00
603ce25299
We're on the way to psalm error level 4, but there are still some remaining issues.
20 lines
367 B
PHP
20 lines
367 B
PHP
<?php
|
|
|
|
namespace Amp;
|
|
|
|
/**
|
|
* Thrown if a promise doesn't resolve within a specified timeout.
|
|
*
|
|
* @see \Amp\Promise\timeout()
|
|
*/
|
|
class TimeoutException extends \Exception
|
|
{
|
|
/**
|
|
* @param string $message Exception message.
|
|
*/
|
|
public function __construct(string $message = "Operation timed out")
|
|
{
|
|
parent::__construct($message);
|
|
}
|
|
}
|