We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef913fc + 871f4ef commit 0909e60Copy full SHA for 0909e60
src/Loop/InvalidWatcherException.php
@@ -9,5 +9,29 @@
9
*/
10
class InvalidWatcherException extends \Exception
11
{
12
+ /** @var string */
13
+ private $watcherId;
14
15
+ /**
16
+ * @param string $watcherId The watcher identifier.
17
+ * @param string|null $message The exception message.
18
+ */
19
+ public function __construct($watcherId, $message = null)
20
+ {
21
+ $this->watcherId = $watcherId;
22
+
23
+ if ($message === null) {
24
+ $message = "An invalid watcher idenfier has been used: '{$watcherId}'";
25
+ }
26
27
+ parent::__construct($message);
28
29
30
31
+ * @return string The watcher identifier.
32
33
+ public function getWatcherId()
34
35
+ return $this->watcherId;
36
37
}
0 commit comments