diff --git a/public.php b/public.php
index 11ee19d1ad6adcc3371c368f2dd3c3bdaa6c41cf..25e08b3195f96b895d5b16c9fa508e3657b089ec 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 e5d4c85db206e575845c85aa98ed2860daa5cd36..1cdb74c4139a940766d42f0487b240252f65adec 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 {
 }
 
 /**