update: exception name.

This commit is contained in:
Darshan 2025-05-10 11:36:13 +05:30
parent 6bdfe3b895
commit 15e0385723
5 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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', [

View file

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

View file

@ -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');

View file

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