Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
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 .