mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Rename types
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\GraphQL;
|
||||
|
||||
use GraphQL\Error\ClientAware;
|
||||
|
||||
class Exception extends \Exception implements ClientAware
|
||||
{
|
||||
|
||||
function __construct(string $message = '', int $code = 0, string $version = '') {
|
||||
$this->message = $message;
|
||||
$this->code = $code;
|
||||
$this->version = $version;
|
||||
}
|
||||
|
||||
public function isClientSafe()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getCategory()
|
||||
{
|
||||
return 'Appwrite Server Exception';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\GraphQL;
|
||||
|
||||
use Appwrite\Extend\Exception;
|
||||
use GraphQL\Error\ClientAware;
|
||||
|
||||
class GQLException extends Exception implements ClientAware
|
||||
{
|
||||
public function isClientSafe(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getCategory(): string
|
||||
{
|
||||
return 'appwrite';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user