Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
GraphQl
Exception
GraphQlNoSuchEntityException.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Framework\GraphQl\Exception
;
9
10
use
Magento\Framework\Exception\NoSuchEntityException
;
11
use
Magento\Framework\Phrase
;
12
16
class
GraphQlNoSuchEntityException
extends
NoSuchEntityException
implements \GraphQL\Error\ClientAware
17
{
18
const
EXCEPTION_CATEGORY
=
'graphql-no-such-entity'
;
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
{
52
return
self::EXCEPTION_CATEGORY
;
53
}
54
}
Magento\Framework\Exception\LocalizedException\$phrase
$phrase
Definition:
LocalizedException.php:22
Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException\EXCEPTION_CATEGORY
const EXCEPTION_CATEGORY
Definition:
GraphQlNoSuchEntityException.php:18
Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException\__construct
__construct(Phrase $phrase, \Exception $cause=null, $code=0, $isSafe=true)
Definition:
GraphQlNoSuchEntityException.php:33
Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException\getCategory
getCategory()
Definition:
GraphQlNoSuchEntityException.php:50
Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException
Definition:
GraphQlNoSuchEntityException.php:16
Magento\Framework\GraphQl\Exception
Definition:
ExceptionFormatter.php:8
Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException\isClientSafe
isClientSafe()
Definition:
GraphQlNoSuchEntityException.php:42
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
$code
$code
Definition:
info.phtml:12
Magento\Framework\Exception\NoSuchEntityException
Definition:
NoSuchEntityException.php:16