updateArticle - Exeptions

This commit is contained in:
2026-06-02 15:22:18 +02:00
parent af04557f58
commit c6b55030cf
2 changed files with 13 additions and 9 deletions
+7 -1
View File
@@ -1,5 +1,9 @@
<?php
require_once "Article.php";
class NotFoundException extends Exception {}
class UnauthorizedAccessException extends Exception {}
/**
* Die Klasse beinhaltet alle Methoden für die Operation mit den Artikel-Daten.
*
@@ -29,7 +33,9 @@ interface ArticleManagerDAO
* @param $author
* @return void
*
* TODO: Fehlerbeschreibung hinzufügen
* @throws NotFoundException
* @throws UnauthorizedAccessException
* /
*/
public function updateArticle($id, $article, $author);