File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
lib/internal/Magento/Framework/Model Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11
11
* This class will be extended by other modules
12
12
* @SuppressWarnings(PHPMD.NumberOfChildren)
13
13
*/
14
- class Exception extends \Exception
14
+ class Exception extends \Magento \ Framework \ Exception \LocalizedException
15
15
{
16
16
const ERROR_CODE_ENTITY_ALREADY_EXISTS = 456 ;
17
17
@@ -20,6 +20,16 @@ class Exception extends \Exception
20
20
*/
21
21
protected $ messages = [];
22
22
23
+ /**
24
+ * @param string $message
25
+ * @param int $code
26
+ * @param Exception $previous
27
+ */
28
+ public function __construct ($ message = "" , $ code = 0 , Exception $ previous = null )
29
+ {
30
+ parent ::__construct ($ message );
31
+ }
32
+
23
33
/**
24
34
* @param \Magento\Framework\Message\AbstractMessage $message
25
35
* @return $this
You can’t perform that action at this time.
0 commit comments