2015-11-25 17:52:58 +01:00
|
|
|
<?php
|
2024-05-23 09:26:56 +02:00
|
|
|
|
2015-11-25 17:52:58 +01:00
|
|
|
/**
|
2024-05-23 09:26:56 +02: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 17:52:58 +01:00
|
|
|
*/
|
|
|
|
namespace OCP\Files;
|
|
|
|
|
|
|
|
/**
|
2015-12-01 17:27:06 +01:00
|
|
|
* Storage authentication exception
|
2015-11-25 17:52:58 +01:00
|
|
|
* @since 9.0.0
|
|
|
|
*/
|
2015-12-01 17:27:06 +01:00
|
|
|
class StorageConnectionException extends StorageNotAvailableException {
|
2015-11-25 17:52:58 +01:00
|
|
|
/**
|
2015-12-01 17:27:06 +01:00
|
|
|
* StorageConnectionException constructor.
|
2015-11-25 17:52:58 +01:00
|
|
|
*
|
|
|
|
* @param string $message
|
2017-07-19 19:44:10 +02:00
|
|
|
* @param \Exception|null $previous
|
2015-11-25 17:52:58 +01:00
|
|
|
* @since 9.0.0
|
|
|
|
*/
|
2024-03-28 16:13:19 +01:00
|
|
|
public function __construct($message = '', ?\Exception $previous = null) {
|
2023-09-26 10:42:38 +02:00
|
|
|
$l = \OCP\Util::getL10N('core');
|
2017-07-19 19:44:10 +02:00
|
|
|
parent::__construct($l->t('Storage connection error. %s', [$message]), self::STATUS_NETWORK_ERROR, $previous);
|
2015-11-25 17:52:58 +01:00
|
|
|
}
|
|
|
|
}
|