mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
ensure resource name is unique
This commit is contained in:
parent
949e1a42d1
commit
af661c5c26
4 changed files with 74 additions and 17 deletions
9
lib/Errors/ResourceNameNotUnique.php
Normal file
9
lib/Errors/ResourceNameNotUnique.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace OCA\OrganizationFolders\Errors;
|
||||
|
||||
class ResourceNameNotUnique extends \RuntimeException {
|
||||
public function __construct() {
|
||||
parent::__construct("Resource cannot have the same name as sibling resource");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue