Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Unsafe extends \Exception implements ClientAware |
||
10 | { |
||
11 | /** |
||
12 | * Returns true when exception message is safe to be displayed to a client. |
||
13 | * |
||
14 | * @api |
||
15 | * @return bool |
||
16 | */ |
||
17 | public function isClientSafe() |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Returns string describing a category of the error. |
||
24 | * |
||
25 | * Value "graphql" is reserved for errors produced by query parsing or validation, do not use it. |
||
26 | * |
||
27 | * @api |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getCategory() |
||
35 |