mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-21 11:37:26 +01:00
added ResourceMemberNotFound error
This commit is contained in:
parent
51a29a3844
commit
0f81059343
3 changed files with 11 additions and 2 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
9
lib/Errors/ResourceMemberNotFound.php
Normal file
9
lib/Errors/ResourceMemberNotFound.php
Normal 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]);
|
||||
}
|
||||
}
|
|
@ -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]);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue