1
<?php
2

3
namespace Nuwave\Lighthouse\Exceptions;
4

5
use Exception;
6
use GraphQL\Error\ClientAware;
7

8
class ParseException extends Exception implements ClientAware
9
{
10
    /**
11
     * Returns true when exception message is safe to be displayed to a client.
12
     *
13
     * @api
14
     */
15 0
    public function isClientSafe(): bool
16
    {
17 0
        return false;
18
    }
19

20
    /**
21
     * Returns string describing a category of the error.
22
     *
23
     * Value "graphql" is reserved for errors produced by query parsing or validation, do not use it.
24
     *
25
     * @api
26
     */
27 0
    public function getCategory(): string
28
    {
29 0
        return 'schema';
30
    }
31
}

Read our documentation on viewing source code .

Loading