aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-09-07 11:03:42 +0200
committerGitHub <noreply@github.com>2023-09-07 11:03:42 +0200
commitbb08cc15b0e8fb917ff37c41642d27f04464124e (patch)
treef45093b57c8664a8ebd3fcad166d9dbe96ee4f6f /lib/public
parentaa8094a71b64f5fbd06328a92df4df8a2228ae3c (diff)
parent8c7017679d9a644a7103788e5b55780febe12aaf (diff)
downloadnextcloud-server-bb08cc15b0e8fb917ff37c41642d27f04464124e.tar.gz
nextcloud-server-bb08cc15b0e8fb917ff37c41642d27f04464124e.zip
Merge pull request #40286 from nextcloud/backport/40233/stable27
[stable27] Detect aborted connection in OC\Files\View and stop writing data to t…
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/ConnectionLostException.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/public/Files/ConnectionLostException.php b/lib/public/Files/ConnectionLostException.php
new file mode 100644
index 00000000000..8e5deb99b46
--- /dev/null
+++ b/lib/public/Files/ConnectionLostException.php
@@ -0,0 +1,33 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
+ *
+ * @author Côme Chilliet <come.chilliet@nextcloud.com>
+ *
+ * @license AGPL-3.0
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+namespace OCP\Files;
+
+/**
+ * Exception for lost connection with the
+ * @since 25.0.11
+ */
+class ConnectionLostException extends \RuntimeException {
+}