Amp\Loop\InvalidWatcherError class InvalidWatcherError extends Error

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 function getWatcherId(): string
No documentation.
__wakeup — public function __wakeup()
No documentation.
getMessage — public final function getMessage()
No documentation.
getCode — public final function getCode()
No documentation.
getFile — public final function getFile()
No documentation.
getLine — public final function getLine()
No documentation.
getTrace — public final function getTrace()
No documentation.
getPrevious — public final function getPrevious()
No documentation.
getTraceAsString — public final function getTraceAsString()
No documentation.
__toString — public function __toString()
No documentation.