0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-21 20:28:11 +01:00

added ResourceMemberNotFound error

This commit is contained in:
Jonathan Treffler 2024-10-30 04:41:30 +01:00
parent 51a29a3844
commit 0f81059343
3 changed files with 11 additions and 2 deletions

View file

@ -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]);
}
}

View file

@ -0,0 +1,9 @@
<?php
namespace OCA\OrganizationFolders\Errors;
class ResourceMemberNotFound extends NotFoundException {
public function __construct($id) {
parent::__construct(\OCA\OrganizationFolders\Db\ResourceMember::class, ["id" => $id]);
}
}

View file

@ -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]);
}
}