f7cloud_client/apps/circles/lib/Exceptions/FederatedItemNotFoundException.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

41 lines
814 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2021 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Circles\Exceptions;
use OCP\AppFramework\Http;
use Throwable;
/**
* Class FederatedItemNotFoundException
*
* @package OCA\Circles\Exceptions
*/
class FederatedItemNotFoundException extends FederatedItemException {
public const STATUS = Http::STATUS_NOT_FOUND;
/**
* FederatedItemNotFoundException constructor.
*
* @param string $message
* @param int $code
* @param Throwable|null $previous
*/
public function __construct(
string $message = '',
int $code = 0,
?Throwable $previous = null,
) {
parent::__construct($message, ($code > 0) ? $code : self::STATUS, $previous);
$this->setStatus(self::STATUS);
}
}