Skip to content

Commit 7122bd6

Browse files
author
Yuri Kovsher
committed
Merge remote-tracking branch 'tango-ce/MAGETWO-33812' into MAGETWO-33812
2 parents 17dc131 + 48ece56 commit 7122bd6

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

app/code/Magento/Catalog/Helper/Product/View.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
*/
1616
class View extends \Magento\Framework\App\Helper\AbstractHelper
1717
{
18-
// List of exceptions throwable during prepareAndRender() method
19-
public $ERR_BAD_CONTROLLER_INTERFACE = 2;
20-
2118
/**
2219
* List of catalog product session message groups
2320
*
@@ -183,6 +180,7 @@ public function initProductLayout(ResultPage $resultPage, $product, $params = nu
183180
* @param \Magento\Framework\App\Action\Action $controller
184181
* @param null|\Magento\Framework\Object $params
185182
* @throws \Magento\Framework\Exception\LocalizedException
183+
* @throws \Magento\Framework\Exception\NoSuchEntityException
186184
* @return \Magento\Catalog\Helper\Product\View
187185
*/
188186
public function prepareAndRender(ResultPage $resultPage, $productId, $controller, $params = null)
@@ -218,8 +216,7 @@ public function prepareAndRender(ResultPage $resultPage, $productId, $controller
218216
$resultPage->getLayout()->initMessages($this->messageGroups);
219217
} else {
220218
throw new \Magento\Framework\Exception\LocalizedException(
221-
__('Bad controller interface for showing product'),
222-
$this->ERR_BAD_CONTROLLER_INTERFACE
219+
__('Bad controller interface for showing product')
223220
);
224221
}
225222
return $this;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Framework\Exception;
7+
8+
class InvalidDataException extends LocalizedException
9+
{
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Framework\Exception\Product;
7+
8+
use Magento\Framework\Exception\LocalizedException;
9+
10+
class HasRequiredOptionsException extends LocalizedException
11+
{
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Framework\Exception\State;
7+
8+
class AdminUserLockedException extends \Magento\Framework\Exception\StateException
9+
{
10+
}

0 commit comments

Comments
 (0)