Amp\TimeoutException classTimeoutException extendsException

Thrown if a promise doesn't resolve within a specified timeout.

Summary

Properties

Methods

Properties

$message —protected $message =''
No documentation.
$code —protected $code =0
No documentation.
$file —protected $file =null
No documentation.
$line —protected $line =null
No documentation.

Methods

__construct —public function__construct(string|null$message ="Operation timed out")
No documentation.
Type Parameter Description Default Value
string|null $message Exception message. "Operation timed out"
__wakeup —public function__wakeup()
No documentation.
getMessage —publicfinal functiongetMessage()
No documentation.
getCode —publicfinal functiongetCode()
No documentation.
getFile —publicfinal functiongetFile()
No documentation.
getLine —publicfinal functiongetLine()
No documentation.
getTrace —publicfinal functiongetTrace()
No documentation.
getPrevious —publicfinal functiongetPrevious()
No documentation.
getTraceAsString —publicfinal functiongetTraceAsString()
No documentation.
__toString —public function__toString()
No documentation.