diff options
author | Jesús Macias <jmacias@solidgear.es> | 2015-12-01 17:27:06 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-03 10:00:11 +0100 |
commit | 9dd11091d4f9a970a3e76d77e772b5905666ed30 (patch) | |
tree | a03cec42fc72681621e62b038221e05bdc721d0c /lib/public/files/storagebadconfigexception.php | |
parent | f4f53e328dbf2c4cc002c0796a60d214746b8f55 (diff) | |
download | nextcloud-server-9dd11091d4f9a970a3e76d77e772b5905666ed30.tar.gz nextcloud-server-9dd11091d4f9a970a3e76d77e772b5905666ed30.zip |
Fix code from comments
Diffstat (limited to 'lib/public/files/storagebadconfigexception.php')
-rw-r--r-- | lib/public/files/storagebadconfigexception.php | 42 |
1 files changed, 42 insertions, 0 deletions
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 @@ +<?php +/** + * @author Jesus Macias <jesus@owncloud.com> + * + * @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 <http://www.gnu.org/licenses/> + * + */ +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); + } + +} |