2015-11-25 11:52:58 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2015-11-25 11:52:58 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-11-25 11:52:58 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Files;
|
|
|
|
|
|
|
|
|
|
/**
|
2015-12-01 11:27:06 -05:00
|
|
|
* Storage authentication exception
|
2015-11-25 11:52:58 -05:00
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2015-12-01 11:27:06 -05:00
|
|
|
class StorageTimeoutException extends StorageNotAvailableException {
|
2015-11-25 11:52:58 -05:00
|
|
|
/**
|
2015-12-01 11:27:06 -05:00
|
|
|
* StorageTimeoutException constructor.
|
2015-11-25 11:52:58 -05:00
|
|
|
*
|
|
|
|
|
* @param string $message
|
2017-07-19 13:44:10 -04:00
|
|
|
* @param \Exception|null $previous
|
2015-11-25 11:52:58 -05:00
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2024-03-28 11:13:19 -04:00
|
|
|
public function __construct($message = '', ?\Exception $previous = null) {
|
2023-09-26 04:42:38 -04:00
|
|
|
$l = \OCP\Util::getL10N('core');
|
2017-07-19 13:44:10 -04:00
|
|
|
parent::__construct($l->t('Storage connection timeout. %s', [$message]), self::STATUS_TIMEOUT, $previous);
|
2015-11-25 11:52:58 -05:00
|
|
|
}
|
|
|
|
|
}
|