1
0
Fork 0
mirror of synced 2024-10-02 18:26:49 +13:00

Rename types

This commit is contained in:
Jake Barnby 2022-04-08 17:54:51 +12:00
parent 40b04a3721
commit af98bb9c4a
No known key found for this signature in database
GPG key ID: A4674EBC0E404657
5 changed files with 19 additions and 25 deletions

View file

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

View file

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