2018-04-18 10:05:11 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2018-04-18 10:05:11 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-04-18 10:05:11 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Federation\Exceptions;
|
|
|
|
|
|
2021-06-29 19:20:33 -04:00
|
|
|
use OCP\HintException;
|
2018-04-18 10:05:11 -04:00
|
|
|
|
2018-06-07 10:36:26 -04:00
|
|
|
/**
|
|
|
|
|
* Class ProviderDoesNotExistsException
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-04-18 10:05:11 -04:00
|
|
|
class ProviderDoesNotExistsException extends HintException {
|
|
|
|
|
/**
|
|
|
|
|
* ProviderDoesNotExistsException constructor.
|
|
|
|
|
*
|
2018-06-07 10:36:26 -04:00
|
|
|
* @since 14.0.0
|
|
|
|
|
*
|
2018-04-18 10:05:11 -04:00
|
|
|
* @param string $providerId cloud federation provider ID
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($providerId) {
|
2023-09-26 04:42:38 -04:00
|
|
|
$l = \OCP\Util::getL10N('federation');
|
2018-04-18 10:05:11 -04:00
|
|
|
$message = 'Cloud Federation Provider with ID: "' . $providerId . '" does not exist.';
|
|
|
|
|
$hint = $l->t('Cloud Federation Provider with ID: "%s" does not exist.', [$providerId]);
|
|
|
|
|
parent::__construct($message, $hint);
|
|
|
|
|
}
|
|
|
|
|
}
|