UrlAlreadyExistsException
Magento\UrlRewrite\Model\Exception\UrlAlreadyExistsException
What it does
This exception is thrown when attempting to create a URL rewrite that already exists in the database for a specific store.
Developers catch this exception when saving URL rewrites to handle duplicate URL key conflicts and can use getUrls() to retrieve the conflicting URLs.
It extends AlreadyExistsException and provides additional context about which URLs caused the conflict.
Public Methods
- getUrls()