Skip to content

Commit e140d29

Browse files
MAGETWO-89232: Validation error appears if duplicate product twice
1 parent 32219a9 commit e140d29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/UrlRewrite/Model/Exception/UrlAlreadyExistsException.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
use Magento\Framework\Phrase;
99

1010
/**
11+
* Exception for already created url.
12+
*
1113
* @api
1214
* @since 100.2.0
1315
*/
14-
class UrlAlreadyExistsException extends \Magento\Framework\Exception\LocalizedException
16+
class UrlAlreadyExistsException extends \Magento\Framework\Exception\AlreadyExistsException
1517
{
1618
/**
1719
* @var array
@@ -34,6 +36,8 @@ public function __construct(Phrase $phrase = null, \Exception $cause = null, $co
3436
}
3537

3638
/**
39+
* Returns urls.
40+
*
3741
* @return array
3842
* @since 100.2.0
3943
*/

0 commit comments

Comments
 (0)