1
0

StorageAuthException.php 688 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 authentication exception
  10. * @since 9.0.0
  11. */
  12. class StorageAuthException extends StorageNotAvailableException {
  13. /**
  14. * StorageAuthException 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 unauthorized. %s', [$message]), self::STATUS_UNAUTHORIZED, $previous);
  23. }
  24. }