From 8dfc56cbde9ed51205682f33c2cc66d712e0c504 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 8 Feb 2022 02:16:02 +0400 Subject: [PATCH] feat: remove prefix from general errors --- src/Appwrite/Extend/Exception.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index 7ee8f1d51..8596211f3 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -34,15 +34,15 @@ class Exception extends \Exception */ /** General */ - const GENERAL_DEFAULT = 'general_default'; - const GENERAL_ACCESS_FORBIDDEN = 'general_access_forbidden'; - const GENERAL_UNKNOWN_ORIGIN = 'general_unknown_origin'; - const GENERAL_SERVICE_DISABLED = 'general_service_disabled'; - const GENERAL_UNAUTHORIZED_SCOPE = 'general_unauthorized_scope'; - const GENERAL_RATE_LIMIT_EXCEEDED = 'general_rate_limit_exceeded'; - const GENERAL_SMTP_DISABLED = 'general_smtp_disabled'; - const GENERAL_ARGUMENT_INVALID = 'general_argument_invalid'; - const GENERAL_SERVER_ERROR = 'general_server_error'; + const GENERAL_DEFAULT = 'default'; + const GENERAL_ACCESS_FORBIDDEN = 'access_forbidden'; + const GENERAL_UNKNOWN_ORIGIN = 'unknown_origin'; + const GENERAL_SERVICE_DISABLED = 'service_disabled'; + const GENERAL_UNAUTHORIZED_SCOPE = 'unauthorized_scope'; + const GENERAL_RATE_LIMIT_EXCEEDED = 'rate_limit_exceeded'; + const GENERAL_SMTP_DISABLED = 'smtp_disabled'; + const GENERAL_ARGUMENT_INVALID = 'argument_invalid'; + const GENERAL_SERVER_ERROR = 'server_error'; /** Users */ const USER_COUNT_EXCEEDED = 'user_count_exceeded';