Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/webonyx/graphql-php/src/Server/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/webonyx/graphql-php/src/Server/RequestError.php

<?php

declare(strict_types=1);

namespace GraphQL\Server;

use Exception;
use GraphQL\Error\ClientAware;

class RequestError extends Exception implements ClientAware
{
    /**
     * Returns true when exception message is safe to be displayed to client
     *
     * @return bool
     */
    public function isClientSafe()
    {
        return true;
    }

    /**
     * Returns string describing error category. E.g. "validation" for your own validation errors.
     *
     * Value "graphql" is reserved for errors produced by query parsing or validation, do not use it.
     *
     * @return string
     */
    public function getCategory()
    {
        return 'request';
    }
}