aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php')
-rw-r--r--lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php b/lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php
index d401f0323ba..5e8e48efd78 100644
--- a/lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php
+++ b/lib/private/encryption/exceptions/encryptionheaderkeyexistsexception.php
@@ -23,7 +23,14 @@
namespace OC\Encryption\Exceptions;
+use OCP\Encryption\Exceptions\GenericEncryptionException;
-class EncryptionHeaderKeyExistsException extends \Exception {
+class EncryptionHeaderKeyExistsException extends GenericEncryptionException {
-} \ No newline at end of file
+ /**
+ * @param string $key
+ */
+ public function __construct($key) {
+ parent::__construct('header key "'. $key . '" already reserved by ownCloud');
+ }
+}