PublicKeyMissingException.php 557 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Encryption\Exceptions;
  8. use OCP\Encryption\Exceptions\GenericEncryptionException;
  9. class PublicKeyMissingException extends GenericEncryptionException {
  10. /**
  11. * @param string $userId
  12. */
  13. public function __construct($userId) {
  14. if (empty($userId)) {
  15. $userId = "<no-user-id-given>";
  16. }
  17. parent::__construct("Public Key missing for user: $userId");
  18. }
  19. }