diff --git a/src/Exception/EtherpadServiceNotPublicException.php b/src/Exception/EtherpadServiceNotPublicException.php new file mode 100644 index 0000000..5d49aab --- /dev/null +++ b/src/Exception/EtherpadServiceNotPublicException.php @@ -0,0 +1,10 @@ +getAdmin('user', 'changeme1', $callback); } - /** - * @throws EtherpadServiceNotFoundException - */ private function scanPad(ScannerServiceCallbackInterface $callback): void { $callback->onScanPadStart(); @@ -529,7 +527,7 @@ private function handleClientVarsResponse( $data = $data[1]; $accessStatus = $data['accessStatus'] ?? null; if ($accessStatus === 'deny') { - $callback->onScanPadException(new EtherpadServiceNotFoundException('Pads are not publicly accessible')); + $callback->onScanPadException(new EtherpadServiceNotPublicException('Pads are not publicly accessible')); return; } @@ -582,7 +580,7 @@ private function doSocketWebsocket( if ($result !== null && is_array($result->data)) { $accessStatus = $result->data['accessStatus'] ?? null; if ($accessStatus === 'deny') { - $callback->onScanPadException(new EtherpadServiceNotFoundException('Pads are not publicly accessible')); + $callback->onScanPadException(new EtherpadServiceNotPublicException('Pads are not publicly accessible')); return; } $data = $result->data;