StorageBadConfigException.php 724 B

1234567891011121314151617181920212223242526
  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 OCP\Files;
  8. /**
  9. * Storage has bad or missing config params
  10. * @since 9.0.0
  11. */
  12. class StorageBadConfigException extends StorageNotAvailableException {
  13. /**
  14. * ExtStorageBadConfigException constructor.
  15. *
  16. * @param string $message
  17. * @param \Exception|null $previous
  18. * @since 9.0.0
  19. */
  20. public function __construct($message = '', ?\Exception $previous = null) {
  21. $l = \OCP\Util::getL10N('core');
  22. parent::__construct($l->t('Storage incomplete configuration. %s', [$message]), self::STATUS_INCOMPLETE_CONF, $previous);
  23. }
  24. }