File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/LoginAsCustomerAssistance/Plugin Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \App \RequestInterface ;
12
12
use Magento \Framework \AuthorizationInterface ;
13
13
use Magento \Framework \Message \MessageInterface ;
14
- use Magento \Framework \Validator \Exception ;
14
+ use Magento \Framework \Validator \Exception as ValidatorException ;
15
15
use Magento \LoginAsCustomerAssistance \Api \IsAssistanceEnabledInterface ;
16
16
use Magento \LoginAsCustomerAssistance \Model \ResourceModel \GetLoginAsCustomerAssistanceAllowed ;
17
17
@@ -49,7 +49,7 @@ public function __construct(
49
49
* @param RequestInterface $request
50
50
* @param null|string $scope
51
51
* @param bool $scopeOnly
52
- * @throws Exception
52
+ * @throws ValidatorException
53
53
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
54
54
*/
55
55
public function beforeExtractData (
@@ -75,8 +75,7 @@ public function beforeExtractData(
75
75
],
76
76
];
77
77
78
- // phpcs:ignore Magento2.Exceptions.DirectThrow
79
- throw new Exception (null , null , $ errorMessages );
78
+ throw new ValidatorException (null , null , $ errorMessages );
80
79
}
81
80
}
82
81
}
You can’t perform that action at this time.
0 commit comments