6
6
7
7
namespace Magento \Framework \Mview \View ;
8
8
9
- use DomainException ;
10
9
use Magento \Framework \DB \Adapter \ConnectionException ;
11
10
use Magento \Framework \Exception \RuntimeException ;
12
11
use Magento \Framework \Phrase ;
13
12
14
13
/**
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.
18
15
*/
19
16
class Changelog implements ChangelogInterface
20
17
{
@@ -48,8 +45,6 @@ class Changelog implements ChangelogInterface
48
45
protected $ resource ;
49
46
50
47
/**
51
- * Changelog constructor
52
- *
53
48
* @param \Magento\Framework\App\ResourceConnection $resource
54
49
* @throws ConnectionException
55
50
*/
@@ -70,8 +65,7 @@ protected function checkConnection()
70
65
{
71
66
if (!$ this ->connection ) {
72
67
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. " )
75
69
);
76
70
}
77
71
}
@@ -199,15 +193,14 @@ public function getVersion()
199
193
*
200
194
* Build a changelog name by concatenating view identifier and changelog name suffix.
201
195
*
202
- * @throws DomainException
196
+ * @throws \ DomainException
203
197
* @return string
204
198
*/
205
199
public function getName ()
206
200
{
207
201
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 " )
211
204
);
212
205
}
213
206
return $ this ->viewId . '_ ' . self ::NAME_SUFFIX ;
0 commit comments