File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99
1010namespace OCA \AppAPI \Notifications ;
1111
12- use InvalidArgumentException ;
1312use OCA \AppAPI \AppInfo \Application ;
1413use OCA \AppAPI \Service \ExAppService ;
1514use OCP \IURLGenerator ;
1615use OCP \L10N \IFactory ;
1716use OCP \Notification \INotification ;
1817use OCP \Notification \INotifier ;
18+ use OCP \Notification \UnknownNotificationException ;
1919
2020class ExAppNotifier implements INotifier {
2121
@@ -38,10 +38,10 @@ public function getName(): string {
3838 public function prepare (INotification $ notification , string $ languageCode ): INotification {
3939 $ exApp = $ this ->service ->getExApp ($ notification ->getApp ());
4040 if ($ exApp === null ) {
41- throw new InvalidArgumentException ();
41+ throw new UnknownNotificationException ();
4242 }
4343 if (!$ exApp ->getEnabled ()) { // Only enabled ExApps can render notifications
44- throw new InvalidArgumentException ('ExApp is disabled ' );
44+ throw new UnknownNotificationException ('ExApp is disabled ' );
4545 }
4646
4747 $ l = $ this ->l10nFactory ->get ($ notification ->getApp (), $ languageCode );
You can’t perform that action at this time.
0 commit comments