mirror of
https://github.com/appwrite/appwrite
synced 2026-05-12 03:28:35 +00:00
28 lines
632 B
PHP
28 lines
632 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Appwrite\GraphQL;
|
||
|
|
|
||
|
|
use GraphQL\Error\ClientAware;
|
||
|
|
|
||
|
|
class ExceptionDev extends \Exception implements ClientAware
|
||
|
|
{
|
||
|
|
|
||
|
|
function __construct(string $message = '', int $code = 0, string $version = '', string $file = '', int $line = -1, array $trace = []) {
|
||
|
|
$this->message = $message;
|
||
|
|
$this->code = $code;
|
||
|
|
$this->version = $version;
|
||
|
|
$this->file = $file;
|
||
|
|
$this->line = $line;
|
||
|
|
$this->trace = $trace;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function isClientSafe()
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getCategory()
|
||
|
|
{
|
||
|
|
return 'Appwrite Server Exception';
|
||
|
|
}
|
||
|
|
}
|