From af98bb9c4a1db464018a3c071a855103b43a0025 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 8 Apr 2022 17:54:51 +1200 Subject: [PATCH] Rename types --- ...SwoolePromise.php => CoroutinePromise.php} | 0 ...dapter.php => CoroutinePromiseAdapter.php} | 0 src/Appwrite/GraphQL/Exception.php | 25 ------------------- src/Appwrite/GraphQL/GQLException.php | 19 ++++++++++++++ .../{ExceptionDev.php => GQLExceptionDev.php} | 0 5 files changed, 19 insertions(+), 25 deletions(-) rename src/Appwrite/GraphQL/{SwoolePromise.php => CoroutinePromise.php} (100%) rename src/Appwrite/GraphQL/{SwoolePromiseAdapter.php => CoroutinePromiseAdapter.php} (100%) delete mode 100644 src/Appwrite/GraphQL/Exception.php create mode 100644 src/Appwrite/GraphQL/GQLException.php rename src/Appwrite/GraphQL/{ExceptionDev.php => GQLExceptionDev.php} (100%) diff --git a/src/Appwrite/GraphQL/SwoolePromise.php b/src/Appwrite/GraphQL/CoroutinePromise.php similarity index 100% rename from src/Appwrite/GraphQL/SwoolePromise.php rename to src/Appwrite/GraphQL/CoroutinePromise.php diff --git a/src/Appwrite/GraphQL/SwoolePromiseAdapter.php b/src/Appwrite/GraphQL/CoroutinePromiseAdapter.php similarity index 100% rename from src/Appwrite/GraphQL/SwoolePromiseAdapter.php rename to src/Appwrite/GraphQL/CoroutinePromiseAdapter.php diff --git a/src/Appwrite/GraphQL/Exception.php b/src/Appwrite/GraphQL/Exception.php deleted file mode 100644 index 804964db46..0000000000 --- a/src/Appwrite/GraphQL/Exception.php +++ /dev/null @@ -1,25 +0,0 @@ -message = $message; - $this->code = $code; - $this->version = $version; - } - - public function isClientSafe() - { - return true; - } - - public function getCategory() - { - return 'Appwrite Server Exception'; - } -} \ No newline at end of file diff --git a/src/Appwrite/GraphQL/GQLException.php b/src/Appwrite/GraphQL/GQLException.php new file mode 100644 index 0000000000..be74c4dc1b --- /dev/null +++ b/src/Appwrite/GraphQL/GQLException.php @@ -0,0 +1,19 @@ +