1
0

StorageTimeoutException.php 695 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 StorageTimeoutException extends StorageNotAvailableException {
  13. /**
  14. * StorageTimeoutException 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 connection timeout. %s', [$message]), self::STATUS_TIMEOUT, $previous);
  23. }
  24. }