You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
653 B
31 lines
653 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Talk\Exceptions\RoomProperty;
|
|
|
|
class DefaultPermissionsException extends \InvalidArgumentException {
|
|
public const REASON_BREAKOUT_ROOM = 'breakout-room';
|
|
public const REASON_TYPE = 'type';
|
|
public const REASON_VALUE = 'value';
|
|
|
|
/**
|
|
* @param self::REASON_* $reason
|
|
*/
|
|
public function __construct(
|
|
protected string $reason,
|
|
) {
|
|
parent::__construct($reason);
|
|
}
|
|
|
|
/**
|
|
* @return self::REASON_*
|
|
*/
|
|
public function getReason(): string {
|
|
return $this->reason;
|
|
}
|
|
}
|