1
0

ModuleAlreadyExistsException.php 548 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OC\Encryption\Exceptions;
  8. use OCP\Encryption\Exceptions\GenericEncryptionException;
  9. class ModuleAlreadyExistsException extends GenericEncryptionException {
  10. /**
  11. * @param string $id
  12. * @param string $name
  13. */
  14. public function __construct($id, $name) {
  15. parent::__construct('Id "' . $id . '" already used by encryption module "' . $name . '"');
  16. }
  17. }