From 4a4356246c298049b93163781832c8f10e9b33eb Mon Sep 17 00:00:00 2001
From: skjnldsv <skjnldsv@protonmail.com>
Date: Tue, 16 Jul 2024 08:29:44 +0200
Subject: [PATCH] fix: add missing RemoteException class

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
---
 public.php | 8 ++++++++
 remote.php | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/public.php b/public.php
index 11ee19d1ad6..25e08b3195f 100644
--- a/public.php
+++ b/public.php
@@ -9,6 +9,14 @@ require_once __DIR__ . '/lib/versioncheck.php';
 
 use Psr\Log\LoggerInterface;
 
+/**
+ * Class RemoteException
+ * Dummy exception class to be use locally to identify certain conditions
+ * Will not be logged to avoid DoS
+ */
+class RemoteException extends \Exception {
+}
+
 /**
  * @param $service
  * @return string
diff --git a/remote.php b/remote.php
index e5d4c85db20..1cdb74c4139 100644
--- a/remote.php
+++ b/remote.php
@@ -17,7 +17,7 @@ use Sabre\DAV\Server;
  * Dummy exception class to be use locally to identify certain conditions
  * Will not be logged to avoid DoS
  */
-class RemoteException extends Exception {
+class RemoteException extends \Exception {
 }
 
 /**
-- 
GitLab