Skip to content

Commit e197eb0

Browse files
committed
MAGETWO-55825: Delivery to mainlie
1 parent 9cb98a8 commit e197eb0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,20 +541,20 @@ public function save(\Magento\Catalog\Api\Data\ProductInterface $product, $saveO
541541
} catch (ConnectionException $exception) {
542542
throw new \Magento\Framework\Exception\TemporaryState\CouldNotSaveException(
543543
__('Database connection error'),
544-
$exception->getCode(),
545-
$exception
544+
$exception,
545+
$exception->getCode()
546546
);
547547
} catch (DeadlockException $exception) {
548548
throw new \Magento\Framework\Exception\TemporaryState\CouldNotSaveException(
549549
__('Database deadlock found when trying to get lock'),
550-
$exception->getCode(),
551-
$exception
550+
$exception,
551+
$exception->getCode()
552552
);
553553
} catch (LockWaitException $exception) {
554554
throw new \Magento\Framework\Exception\TemporaryState\CouldNotSaveException(
555555
__('Database lock wait timeout exceeded'),
556-
$exception->getCode(),
557-
$exception
556+
$exception,
557+
$exception->getCode()
558558
);
559559
} catch (\Magento\Eav\Model\Entity\Attribute\Exception $exception) {
560560
throw \Magento\Framework\Exception\InputException::invalidFieldValue(

lib/internal/Magento/Framework/Exception/TemporaryState/CouldNotSaveException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CouldNotSaveException extends LocalizedCouldNotSaveException implements Te
2121
* @param int $code [optional] The Exception code.
2222
* @param \Exception $previous [optional] The previous exception used for the exception chaining.
2323
*/
24-
public function __construct(Phrase $phrase, $code = 0, \Exception $previous = null)
24+
public function __construct(Phrase $phrase, \Exception $previous = null, $code = 0)
2525
{
2626
parent::__construct($phrase, $previous);
2727
$this->code = $code;

0 commit comments

Comments
 (0)