Skip to content

Commit 6998880

Browse files
committed
Fix Namespace for Exception class
1 parent a2c3006 commit 6998880

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Controller/Adminhtml/Actions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,11 @@ protected function _massStatusAction()
301301
$statusFieldName = $this->_statusField;
302302

303303
if (is_null($status)) {
304-
throw new Exception(__('Parameter "Status" missing in request data.'));
304+
throw new \Exception(__('Parameter "Status" missing in request data.'));
305305
}
306306

307307
if (is_null($statusFieldName)) {
308-
throw new Exception(__('Status Field Name is not specified.'));
308+
throw new \Exception(__('Status Field Name is not specified.'));
309309
}
310310

311311
foreach($ids as $id) {

Model/Import/AbstractImport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function prepareData($data)
116116

117117
foreach($this->_requiredFields as $field) {
118118
if (empty($data[$field])) {
119-
throw new Exception(__('Parameter %1 is required', $field), 1);
119+
throw new \Exception(__('Parameter %1 is required', $field), 1);
120120
}
121121
}
122122

0 commit comments

Comments
 (0)