appwrite/src/Appwrite/GraphQL/GQLExceptionDev.php

28 lines
632 B
PHP
Raw Normal View History

2021-03-17 20:45:47 +00:00
<?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';
}
}