1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
amp/lib/TimeoutException.php
Aaron Piotrowski 5651240615 Update to promise spec v0.3
Dropped strict-types due to spec requiring weak types in callbacks.
2016-12-29 16:29:27 -06:00

13 lines
257 B
PHP

<?php
namespace Amp;
class TimeoutException extends \Exception {
/**
* @param string|null $message
*/
public function __construct(string $message = null) {
parent::__construct($message ?: "Promise resolution timed out");
}
}