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;
|
|
|
|
|
|
2018-04-30 05:49:24 -04:00
|
|
|
use OCP\AppFramework\Http;
|
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 ProviderCouldNotAddShareException
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-04-18 10:05:11 -04:00
|
|
|
class ProviderCouldNotAddShareException extends HintException {
|
2018-06-07 10:36:26 -04:00
|
|
|
/**
|
|
|
|
|
* ProviderCouldNotAddShareException constructor.
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*
|
|
|
|
|
* @param string $message
|
|
|
|
|
* @param string $hint
|
|
|
|
|
* @param int $code
|
|
|
|
|
* @param \Exception|null $previous
|
|
|
|
|
*/
|
2024-03-28 11:13:19 -04:00
|
|
|
public function __construct($message, $hint = '', $code = Http::STATUS_BAD_REQUEST, ?\Exception $previous = null) {
|
2018-04-30 05:49:24 -04:00
|
|
|
parent::__construct($message, $hint, $code, $previous);
|
|
|
|
|
}
|
2018-04-18 10:05:11 -04:00
|
|
|
}
|