0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-22 05:51:35 +00:00
nextcloud_server/lib/public/Files/StorageAuthException.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
688 B
PHP
Raw Permalink Normal View History

<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCP\Files;
/**
2015-12-01 17:27:06 +01:00
* Storage authentication exception
* @since 9.0.0
*/
2015-12-01 17:27:06 +01:00
class StorageAuthException extends StorageNotAvailableException {
/**
2015-12-01 17:27:06 +01:00
* StorageAuthException constructor.
*
* @param string $message
* @param \Exception|null $previous
* @since 9.0.0
*/
public function __construct($message = '', ?\Exception $previous = null) {
$l = \OCP\Util::getL10N('core');
parent::__construct($l->t('Storage unauthorized. %s', [$message]), self::STATUS_UNAUTHORIZED, $previous);
}
}