Skip to main content
6 events
when toggle format what by license comment
Jan 5, 2018 at 2:37 vote accept PY Yick
Jan 5, 2018 at 2:37 comment added PY Yick I don't know why in my case, when throw exceptions, will generate a page like PHP syntax error. While in Magento_Cms it shows error message like the one I want.
Jan 4, 2018 at 11:32 comment added Qaisar Satti @PYYick this is used magento 2 default ResourceModel you can check it Magento\Cms\Model\ResourceModel\Block.php
Jan 4, 2018 at 10:51 comment added PY Yick My bad. Actually I want sth like Magento\Framework\Message\ManagerInterface::addErrorMessage(__('The page URL key not set.'));. Your method will throw an error page like PHP error.
Jan 4, 2018 at 10:33 history edited Qaisar Satti CC BY-SA 3.0
added 19 characters in body
Jan 4, 2018 at 10:22 history answered Qaisar Satti CC BY-SA 3.0