diff options
Diffstat (limited to 'lib/public/Notification/IncompleteNotificationException.php')
-rw-r--r-- | lib/public/Notification/IncompleteNotificationException.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/public/Notification/IncompleteNotificationException.php b/lib/public/Notification/IncompleteNotificationException.php new file mode 100644 index 00000000000..49d388ebee6 --- /dev/null +++ b/lib/public/Notification/IncompleteNotificationException.php @@ -0,0 +1,27 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace OCP\Notification; + +use OCP\AppFramework\Attribute\Catchable; + +/** + * Thrown when {@see \OCP\Notification\IManager::notify()} is called with a notification + * that does not have all required fields set: + * + * - app + * - user + * - dateTime + * - objectType + * - objectId + * - subject + */ +#[Catchable(since: '30.0.0')] +class IncompleteNotificationException extends \InvalidArgumentException { +} |