use OCP\Files\FileInfo;
use OCP\IURLGenerator;
use OCP\L10N\IFactory;
+use OCP\Notification\AlreadyProcessedException;
use OCP\Notification\IAction;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;
/**
* @throws InvalidArgumentException
+ * @throws AlreadyProcessedException
*/
public function prepare(INotification $notification, string $languageCode): INotification {
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);
try {
$reminder = $this->reminderService->get($reminderId);
} catch (DoesNotExistException $e) {
- throw new InvalidArgumentException();
+ throw new AlreadyProcessedException();
}
try {