1
0

ActionNotSupportedException.php 673 B

1234567891011121314151617181920212223242526272829
  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 ActionNotSupportedException
  10. *
  11. *
  12. * @since 14.0.0
  13. */
  14. class ActionNotSupportedException extends HintException {
  15. /**
  16. * ActionNotSupportedException constructor.
  17. *
  18. * @since 14.0.0
  19. *
  20. */
  21. public function __construct($action) {
  22. $l = \OCP\Util::getL10N('federation');
  23. $message = 'Action "' . $action . '" not supported or implemented.';
  24. $hint = $l->t('Action "%s" not supported or implemented.', [$action]);
  25. parent::__construct($message, $hint);
  26. }
  27. }