Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GraphQlInputException.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
16 class GraphQlInputException extends InputException implements \GraphQL\Error\ClientAware
17 {
18  const EXCEPTION_CATEGORY = 'graphql-input';
19 
23  private $isSafe;
24 
33  public function __construct(Phrase $phrase, \Exception $cause = null, $code = 0, $isSafe = true)
34  {
35  $this->isSafe = $isSafe;
36  parent::__construct($phrase, $cause, $code);
37  }
38 
42  public function isClientSafe() : bool
43  {
44  return $this->isSafe;
45  }
46 
50  public function getCategory() : string
51  {
53  }
54 }
__construct(Phrase $phrase, \Exception $cause=null, $code=0, $isSafe=true)
$code
Definition: info.phtml:12