mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
update: exception name.
This commit is contained in:
parent
6bdfe3b895
commit
15e0385723
5 changed files with 5 additions and 5 deletions
|
|
@ -86,7 +86,7 @@ abstract class Action extends UtopiaAction
|
|||
/**
|
||||
* Get the appropriate grandparent level not found exception.
|
||||
*/
|
||||
final protected function getGrantParentNotFoundException(): string
|
||||
final protected function getGrandParentNotFoundException(): string
|
||||
{
|
||||
return $this->isCollectionsAPI()
|
||||
? Exception::COLLECTION_NOT_FOUND
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class Create extends Action
|
|||
|
||||
if ($collection->isEmpty()) {
|
||||
// table or collection.
|
||||
throw new Exception($this->getGrantParentNotFoundException());
|
||||
throw new Exception($this->getGrandParentNotFoundException());
|
||||
}
|
||||
|
||||
$count = $dbForProject->count('indexes', [
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class Delete extends Action
|
|||
|
||||
if ($collection->isEmpty()) {
|
||||
// table or collection.
|
||||
throw new Exception($this->getGrantParentNotFoundException());
|
||||
throw new Exception($this->getGrandParentNotFoundException());
|
||||
}
|
||||
|
||||
$index = $dbForProject->getDocument('indexes', $db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key);
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class Get extends Action
|
|||
|
||||
if ($collection->isEmpty()) {
|
||||
// table or collection.
|
||||
throw new Exception($this->getGrantParentNotFoundException());
|
||||
throw new Exception($this->getGrandParentNotFoundException());
|
||||
}
|
||||
|
||||
$index = $collection->find('key', $key, 'indexes');
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class XList extends Action
|
|||
|
||||
if ($collection->isEmpty()) {
|
||||
// table or collection.
|
||||
throw new Exception($this->getGrantParentNotFoundException());
|
||||
throw new Exception($this->getGrandParentNotFoundException());
|
||||
}
|
||||
|
||||
$queries = Query::parseQueries($queries);
|
||||
|
|
|
|||
Loading…
Reference in a new issue