24 lines
514 B
PHP
24 lines
514 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2023 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Talk\Middleware\Exceptions;
|
|
|
|
use OCP\AppFramework\Http;
|
|
|
|
class UnsupportedClientVersionException extends \Exception {
|
|
public function __construct(
|
|
protected string $version,
|
|
) {
|
|
parent::__construct('Unsupported client version', Http::STATUS_UPGRADE_REQUIRED);
|
|
}
|
|
|
|
public function getMinVersion(): string {
|
|
return $this->version;
|
|
}
|
|
}
|