diff options
Diffstat (limited to 'lib/public/Notification/IncompleteParsedNotificationException.php')
-rw-r--r-- | lib/public/Notification/IncompleteParsedNotificationException.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/Notification/IncompleteParsedNotificationException.php b/lib/public/Notification/IncompleteParsedNotificationException.php new file mode 100644 index 00000000000..c31ab129fd4 --- /dev/null +++ b/lib/public/Notification/IncompleteParsedNotificationException.php @@ -0,0 +1,30 @@ +<?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::prepare()} is called with a notification + * that does not have all required fields set at the end of the manager or after a INotifier + * that claimed to have parsed the notification. + * + * Required fields are: + * + * - app + * - user + * - dateTime + * - objectType + * - objectId + * - parsedSubject + */ +#[Catchable(since: '30.0.0')] +class IncompleteParsedNotificationException extends \InvalidArgumentException { +} |