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
SerializationException.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Exception
;
8
9
use
Magento\Framework\Phrase
;
10
17
class
SerializationException
extends
LocalizedException
18
{
22
const
DEFAULT_MESSAGE
=
'Invalid type'
;
23
27
const
TYPE_MISMATCH
=
'The "%value" value\'s type is invalid. The "%type" type was expected. Verify and try again.'
;
28
34
public
function
__construct
(
Phrase
$phrase
=
null
, \Exception $cause =
null
,
$code
= 0)
35
{
36
if
(
$phrase
===
null
) {
37
$phrase
=
new
Phrase
(
'One or more input exceptions have occurred.'
);
38
}
39
parent::__construct(
$phrase
, $cause,
$code
);
40
}
41
}
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\SerializationException\TYPE_MISMATCH
const TYPE_MISMATCH
Definition:
SerializationException.php:27
Magento\Framework\Exception\SerializationException\__construct
__construct(Phrase $phrase=null, \Exception $cause=null, $code=0)
Definition:
SerializationException.php:34
Magento\Framework\Exception\SerializationException\DEFAULT_MESSAGE
const DEFAULT_MESSAGE
Definition:
SerializationException.php:22
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\Exception\SerializationException
Definition:
SerializationException.php:17
$code
$code
Definition:
info.phtml:12