Skip to content

Commit 21ace74

Browse files
committed
Fix exeptions in webapi
1 parent 3252bb6 commit 21ace74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/AbstractManagement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function create($data)
3232
$data = json_decode($data, true);
3333
$item = $this->_itemFactory->create();
3434
$item->setData($data)->save();
35-
} catch (Exception $e) {
35+
} catch (\Exception $e) {
3636
return false;
3737
}
3838

@@ -57,7 +57,7 @@ public function update($id, $data)
5757
}
5858
$data = json_decode($data, true);
5959
$item->addData($data)->save();
60-
} catch (Exception $e) {
60+
} catch (\Exception $e) {
6161
return false;
6262
}
6363

@@ -80,7 +80,7 @@ public function delete($id)
8080
return true;
8181
}
8282
return false;
83-
} catch (Exception $e) {
83+
} catch (\Exception $e) {
8484
return false;
8585
}
8686
}

0 commit comments

Comments
 (0)