1
0

SettingNotFoundException.php 547 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Activity\Exceptions;
  8. /**
  9. * @since 30.0.0
  10. */
  11. class SettingNotFoundException extends \InvalidArgumentException {
  12. /**
  13. * @since 30.0.0
  14. */
  15. public function __construct(
  16. protected string $setting,
  17. ) {
  18. parent::__construct('Setting ' . $setting . ' not found');
  19. }
  20. /**
  21. * @since 30.0.0
  22. */
  23. public function getSettingId(): string {
  24. return $this->setting;
  25. }
  26. }