EncryptionHeaderKeyExistsException.php 513 B

12345678910111213141516171819
  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 EncryptionHeaderKeyExistsException extends GenericEncryptionException {
  10. /**
  11. * @param string $key
  12. */
  13. public function __construct($key) {
  14. parent::__construct('header key "' . $key . '" already reserved by ownCloud');
  15. }
  16. }