From 9dd11091d4f9a970a3e76d77e772b5905666ed30 Mon Sep 17 00:00:00 2001 From: Jesús Macias Date: Tue, 1 Dec 2015 17:27:06 +0100 Subject: Fix code from comments --- lib/public/files/storagebadconfigexception.php | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lib/public/files/storagebadconfigexception.php (limited to 'lib/public/files/storagebadconfigexception.php') diff --git a/lib/public/files/storagebadconfigexception.php b/lib/public/files/storagebadconfigexception.php new file mode 100644 index 00000000000..d72ad3358e5 --- /dev/null +++ b/lib/public/files/storagebadconfigexception.php @@ -0,0 +1,42 @@ + + * + * @copyright Copyright (c) 2015, 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 + * + */ +namespace OCP\Files; + +/** + * Storage has bad or missing config params + * @since 9.0.0 + */ +class StorageBadConfigException extends StorageNotAvailableException { + + /** + * ExtStorageBadConfigException 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 incomplete configuration. %s', $message), self::STATUS_INCOMPLETE_CONF, $previous); + } + +} -- cgit v1.2.3