Skip to content

Commit c3fdc92

Browse files
authored
Update Changelog.php
1 parent 528a56d commit c3fdc92

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

lib/internal/Magento/Framework/Mview/View/Changelog.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66

77
namespace Magento\Framework\Mview\View;
88

9-
use DomainException;
109
use Magento\Framework\DB\Adapter\ConnectionException;
1110
use Magento\Framework\Exception\RuntimeException;
1211
use Magento\Framework\Phrase;
1312

1413
/**
15-
* Class Changelog for modifying the mview_state table
16-
*
17-
* @package Magento\Framework\Mview\View
14+
* Class Changelog for manipulations with the mview_state table.
1815
*/
1916
class Changelog implements ChangelogInterface
2017
{
@@ -48,8 +45,6 @@ class Changelog implements ChangelogInterface
4845
protected $resource;
4946

5047
/**
51-
* Changelog constructor
52-
*
5348
* @param \Magento\Framework\App\ResourceConnection $resource
5449
* @throws ConnectionException
5550
*/
@@ -70,8 +65,7 @@ protected function checkConnection()
7065
{
7166
if (!$this->connection) {
7267
throw new ConnectionException(
73-
new Phrase("The write connection to the database isn't available. Please try again later."),
74-
E_USER_ERROR
68+
new Phrase("The write connection to the database isn't available. Please try again later.")
7569
);
7670
}
7771
}
@@ -199,15 +193,14 @@ public function getVersion()
199193
*
200194
* Build a changelog name by concatenating view identifier and changelog name suffix.
201195
*
202-
* @throws DomainException
196+
* @throws \DomainException
203197
* @return string
204198
*/
205199
public function getName()
206200
{
207201
if (strlen($this->viewId) == 0) {
208-
throw new DomainException(
209-
new Phrase("View's identifier is not set"),
210-
E_USER_ERROR
202+
throw new \DomainException(
203+
new Phrase("View's identifier is not set")
211204
);
212205
}
213206
return $this->viewId . '_' . self::NAME_SUFFIX;

0 commit comments

Comments
 (0)