From 0f81059343a512756c213a6fbcc61fe700994fae Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Wed, 30 Oct 2024 04:41:30 +0100 Subject: [PATCH] added ResourceMemberNotFound error --- lib/Errors/OrganizationRoleNotFound.php | 2 +- lib/Errors/ResourceMemberNotFound.php | 9 +++++++++ lib/Errors/ResourceNotFound.php | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 lib/Errors/ResourceMemberNotFound.php diff --git a/lib/Errors/OrganizationRoleNotFound.php b/lib/Errors/OrganizationRoleNotFound.php index baa3021..452bf70 100644 --- a/lib/Errors/OrganizationRoleNotFound.php +++ b/lib/Errors/OrganizationRoleNotFound.php @@ -4,6 +4,6 @@ namespace OCA\OrganizationFolders\Errors; class OrganizationRoleNotFound extends NotFoundException { public function __construct($provider, $id) { - parent::__construct(OCA\OrganizationFolders\Model\OrganizationRole::class, ["provider" => $provider, "id" => $id]); + parent::__construct(\OCA\OrganizationFolders\Model\OrganizationRole::class, ["provider" => $provider, "id" => $id]); } } \ No newline at end of file diff --git a/lib/Errors/ResourceMemberNotFound.php b/lib/Errors/ResourceMemberNotFound.php new file mode 100644 index 0000000..26999ea --- /dev/null +++ b/lib/Errors/ResourceMemberNotFound.php @@ -0,0 +1,9 @@ + $id]); + } +} \ No newline at end of file diff --git a/lib/Errors/ResourceNotFound.php b/lib/Errors/ResourceNotFound.php index 3897431..8fb3e85 100644 --- a/lib/Errors/ResourceNotFound.php +++ b/lib/Errors/ResourceNotFound.php @@ -4,6 +4,6 @@ namespace OCA\OrganizationFolders\Errors; class ResourceNotFound extends NotFoundException { public function __construct($id) { - parent::__construct(OCA\OrganizationFolders\Db\Resource::class, ["id" => $id]); + parent::__construct(\OCA\OrganizationFolders\Db\Resource::class, ["id" => $id]); } } \ No newline at end of file