summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/StorageTimeoutException.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-05-17 20:00:28 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-05-18 14:35:50 +0200
commit4a53542e457bf419007fcf63048eeb94d88ae514 (patch)
tree8caad7f40f505ea69c32cab25dde6dbc0b481e45 /lib/public/Files/StorageTimeoutException.php
parent765782445a24fb1b239f2a3cd5c7b239ae4f6455 (diff)
downloadnextcloud-server-4a53542e457bf419007fcf63048eeb94d88ae514.tar.gz
nextcloud-server-4a53542e457bf419007fcf63048eeb94d88ae514.zip
Move \OCP\Files to PSR-4
Diffstat (limited to 'lib/public/Files/StorageTimeoutException.php')
-rw-r--r--lib/public/Files/StorageTimeoutException.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/public/Files/StorageTimeoutException.php b/lib/public/Files/StorageTimeoutException.php
new file mode 100644
index 00000000000..ed4d98af89b
--- /dev/null
+++ b/lib/public/Files/StorageTimeoutException.php
@@ -0,0 +1,41 @@
+<?php
+/**
+ * @author Jesús Macias <jmacias@solidgear.es>
+ *
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
+ * @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;
+
+/**
+ * Storage authentication exception
+ * @since 9.0.0
+ */
+class StorageTimeoutException extends StorageNotAvailableException {
+
+ /**
+ * StorageTimeoutException constructor.
+ *
+ * @param string $message
+ * @param int $code
+ * @param \Exception $previous
+ * @since 9.0.0
+ */
+ public function __construct($message = '', \Exception $previous = null) {
+ $l = \OC::$server->getL10N('core');
+ parent::__construct($l->t('Storage connection timeout. %s', $message), self::STATUS_TIMEOUT, $previous);
+ }
+}