Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
SerializationException Class Reference
Inheritance diagram for SerializationException:
LocalizedException

Public Member Functions

 __construct (Phrase $phrase=null, \Exception $cause=null, $code=0)
 
- Public Member Functions inherited from LocalizedException
 __construct (Phrase $phrase, \Exception $cause=null, $code=0)
 
 getRawMessage ()
 
 getParameters ()
 
 getLogMessage ()
 

Data Fields

const DEFAULT_MESSAGE = 'Invalid type'
 
const TYPE_MISMATCH = 'The "%value" value\'s type is invalid. The "%type" type was expected. Verify and try again.'
 

Additional Inherited Members

- Protected Attributes inherited from LocalizedException
 $phrase
 
 $logMessage
 

Detailed Description

Serialization Exception

@api

Since
100.0.2

Definition at line 17 of file SerializationException.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Phrase  $phrase = null,
\Exception  $cause = null,
  $code = 0 
)
Parameters
\Magento\Framework\Phrase$phrase
\Exception$cause
int$code

Definition at line 34 of file SerializationException.php.

35  {
36  if ($phrase === null) {
37  $phrase = new Phrase('One or more input exceptions have occurred.');
38  }
39  parent::__construct($phrase, $cause, $code);
40  }
$code
Definition: info.phtml:12

Field Documentation

◆ DEFAULT_MESSAGE

const DEFAULT_MESSAGE = 'Invalid type'
Deprecated:

Definition at line 22 of file SerializationException.php.

◆ TYPE_MISMATCH

const TYPE_MISMATCH = 'The "%value" value\'s type is invalid. The "%type" type was expected. Verify and try again.'
Deprecated:

Definition at line 27 of file SerializationException.php.


The documentation for this class was generated from the following file: