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
Exception
AlreadyExistsException.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Exception
;
7
8
use
Magento\Framework\Phrase
;
9
14
class
AlreadyExistsException
extends
LocalizedException
15
{
21
public
function
__construct
(
Phrase
$phrase
=
null
, \Exception $cause =
null
,
$code
= 0)
22
{
23
if
(
$phrase
===
null
) {
24
$phrase
=
new
Phrase
(
'Unique constraint violation found'
);
25
}
26
parent::__construct(
$phrase
, $cause,
$code
);
27
}
28
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\Exception\LocalizedException\$phrase
$phrase
Definition:
LocalizedException.php:22
Magento\Framework\Exception
Definition:
AbstractAggregateException.php:7
Magento\Framework\Exception\AlreadyExistsException
Definition:
AlreadyExistsException.php:14
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\Exception\AlreadyExistsException\__construct
__construct(Phrase $phrase=null, \Exception $cause=null, $code=0)
Definition:
AlreadyExistsException.php:21
$code
$code
Definition:
info.phtml:12