2018-05-09 11:06:35 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
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-05-09 11:06:35 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Federation\Exceptions;
|
|
|
|
|
|
2021-06-29 19:20:33 -04:00
|
|
|
use OCP\HintException;
|
2018-05-09 11:06:35 -04:00
|
|
|
|
2018-06-07 10:36:26 -04:00
|
|
|
/**
|
|
|
|
|
* Class ActionNotSupportedException
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-05-09 11:06:35 -04:00
|
|
|
class ActionNotSupportedException extends HintException {
|
|
|
|
|
/**
|
|
|
|
|
* ActionNotSupportedException constructor.
|
|
|
|
|
*
|
2018-06-07 10:36:26 -04:00
|
|
|
* @since 14.0.0
|
|
|
|
|
*
|
2018-05-09 11:06:35 -04:00
|
|
|
*/
|
|
|
|
|
public function __construct($action) {
|
2023-09-26 04:42:38 -04:00
|
|
|
$l = \OCP\Util::getL10N('federation');
|
2018-05-09 11:06:35 -04:00
|
|
|
$message = 'Action "' . $action . '" not supported or implemented.';
|
|
|
|
|
$hint = $l->t('Action "%s" not supported or implemented.', [$action]);
|
|
|
|
|
parent::__construct($message, $hint);
|
|
|
|
|
}
|
|
|
|
|
}
|