Rename types
This commit is contained in:
parent
40b04a3721
commit
af98bb9c4a
5 changed files with 19 additions and 25 deletions
|
@ -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';
|
||||
}
|
||||
}
|
19
src/Appwrite/GraphQL/GQLException.php
Normal file
19
src/Appwrite/GraphQL/GQLException.php
Normal 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';
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue