LLM OCP API: Use OCP\Common\Exception\NotFoundException

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2023-06-27 16:51:41 +02:00
parent a7cd6bf5b8
commit b00a9a6eae
3 changed files with 7 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ declare(strict_types=1);
namespace OCP\LanguageModel;
use OCP\Common\Exception\NotFoundException;
use OCP\PreConditionNotMetException;
use RuntimeException;
@@ -70,7 +71,7 @@ interface ILanguageModelManager {
* @param int $id The id of the task
* @return ILanguageModelTask
* @throws RuntimeException If the query failed
* @throws \ValueError If the task could not be found
* @throws NotFoundException If the task could not be found
* @since 28.0.0
*/
public function getTask(int $id): ILanguageModelTask;