ProviderDoesNotExistsException.php 781 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Federation\Exceptions;
  7. use OCP\HintException;
  8. /**
  9. * Class ProviderDoesNotExistsException
  10. *
  11. *
  12. * @since 14.0.0
  13. */
  14. class ProviderDoesNotExistsException extends HintException {
  15. /**
  16. * ProviderDoesNotExistsException constructor.
  17. *
  18. * @since 14.0.0
  19. *
  20. * @param string $providerId cloud federation provider ID
  21. */
  22. public function __construct($providerId) {
  23. $l = \OCP\Util::getL10N('federation');
  24. $message = 'Cloud Federation Provider with ID: "' . $providerId . '" does not exist.';
  25. $hint = $l->t('Cloud Federation Provider with ID: "%s" does not exist.', [$providerId]);
  26. parent::__construct($message, $hint);
  27. }
  28. }