1
<?php
2

3
namespace Nuwave\Lighthouse\Exceptions;
4

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

8
/**
9
 * Thrown when the schema definition or related code is wrong.
10
 *
11
 * This signals a developer error, so we do not show this exception to the user.
12
 */
13
class DefinitionException extends Exception implements ClientAware
14
{
15 1
    public function isClientSafe(): bool
16
    {
17 1
        return false;
18
    }
19

20 1
    public function getCategory(): string
21
    {
22 1
        return 'schema';
23
    }
24
}

Read our documentation on viewing source code .

Loading