summaryrefslogtreecommitdiffstats
path: root/lib/private/encryption/exceptions/modulealreadyexistsexception.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/encryption/exceptions/modulealreadyexistsexception.php')
-rw-r--r--lib/private/encryption/exceptions/modulealreadyexistsexception.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/private/encryption/exceptions/modulealreadyexistsexception.php b/lib/private/encryption/exceptions/modulealreadyexistsexception.php
index 41fc0188e24..fa1e70a5c36 100644
--- a/lib/private/encryption/exceptions/modulealreadyexistsexception.php
+++ b/lib/private/encryption/exceptions/modulealreadyexistsexception.php
@@ -23,6 +23,16 @@
namespace OC\Encryption\Exceptions;
-class ModuleAlreadyExistsException extends \Exception {
+use OCP\Encryption\Exceptions\GenericEncryptionException;
+
+class ModuleAlreadyExistsException extends GenericEncryptionException {
+
+ /**
+ * @param string $id
+ * @param string $name
+ */
+ public function __construct($id, $name) {
+ parent::__construct('Id "' . $id . '" already used by encryption module "' . $name . '"');
+ }
}