We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bbe3ee0 + 4162f32 commit 61a9c8dCopy full SHA for 61a9c8d
lib/internal/Magento/Framework/Exception/LocalizedException.php
@@ -26,15 +26,14 @@ class LocalizedException extends \Exception
26
protected $logMessage;
27
28
/**
29
- * Constructor
30
- *
31
* @param \Magento\Framework\Phrase $phrase
32
* @param \Exception $cause
+ * @param int $code
33
*/
34
- public function __construct(Phrase $phrase, \Exception $cause = null)
+ public function __construct(Phrase $phrase, \Exception $cause = null, $code = 0)
35
{
36
$this->phrase = $phrase;
37
- parent::__construct($phrase->render(), 0, $cause);
+ parent::__construct($phrase->render(), intval($code), $cause);
38
}
39
40
0 commit comments