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