Amp\Loop\InvalidWatcherError classInvalidWatcherError extendsError

MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid watcher identifier.

An invalid watcher identifier is any identifier that is not yet emitted by the driver or cancelled by the user.

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$watcherId,string|null$message)
No documentation.
Type Parameter Description Default Value
string $watcherId The watcher identifier. none
string|null $message The exception message. none
getWatcherId —public functiongetWatcherId():string
No documentation.
__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.