mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
RELATIONSHIP_VALUE_INVALID
This commit is contained in:
1 parent
65ab721c3d
commit
12434fd846
3 files changed
+7
-2
No files matched your search
@@ -592,6 +592,11 @@ return [
|
||||
'description' => 'The attribute type is invalid.',
|
||||
'code' => 400,
|
||||
],
|
||||
Exception::RELATIONSHIP_VALUE_INVALID => [
|
||||
'name' => Exception::RELATIONSHIP_VALUE_INVALID,
|
||||
'description' => 'The relationship value is invalid.',
|
||||
'code' => 400,
|
||||
],
|
||||
|
||||
/** Indexes */
|
||||
Exception::INDEX_NOT_FOUND => [
|
||||
|
||||
@@ -849,7 +849,7 @@ App::error()
|
||||
break;
|
||||
case 'Utopia\Database\Exception\InvalidRelationshipValue':
|
||||
\var_dump('Wrapping relationship exception');
|
||||
$error = new AppwriteException(AppwriteException::INVALID_RELATIONSHIP_VALUE);
|
||||
$error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ class Exception extends \Exception
|
||||
public const ATTRIBUTE_TYPE_INVALID = 'attribute_type_invalid';
|
||||
|
||||
/** Relationship */
|
||||
public const INVALID_RELATIONSHIP_VALUE = 'invalid_relationship_value';
|
||||
public const RELATIONSHIP_VALUE_INVALID = 'relationship_value_invalid';
|
||||
|
||||
/** Indexes */
|
||||
public const INDEX_NOT_FOUND = 'index_not_found';
|
||||
|
||||
Reference in new issue
Block a user