From d379157289d2e09f41b10253d90ed0867e267a7e Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 22 Apr 2016 17:34:01 +0200 Subject: Move \OC\Encryption to PSR-4 --- .../EncryptionHeaderKeyExistsException.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/private/Encryption/Exceptions/EncryptionHeaderKeyExistsException.php (limited to 'lib/private/Encryption/Exceptions/EncryptionHeaderKeyExistsException.php') diff --git a/lib/private/Encryption/Exceptions/EncryptionHeaderKeyExistsException.php b/lib/private/Encryption/Exceptions/EncryptionHeaderKeyExistsException.php new file mode 100644 index 00000000000..ab1a166018c --- /dev/null +++ b/lib/private/Encryption/Exceptions/EncryptionHeaderKeyExistsException.php @@ -0,0 +1,35 @@ + + * @author Thomas Müller + * + * @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 + * + */ + +namespace OC\Encryption\Exceptions; + +use OCP\Encryption\Exceptions\GenericEncryptionException; + +class EncryptionHeaderKeyExistsException extends GenericEncryptionException { + + /** + * @param string $key + */ + public function __construct($key) { + parent::__construct('header key "'. $key . '" already reserved by ownCloud'); + } +} -- cgit v1.2.3