| Current Path : /home/rtorresani/www/vendor/magento/framework/Message/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/Message/ExceptionMessageFactoryInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\Message;
use Magento\Framework\Exception\RuntimeException;
/**
* Interface \Magento\Framework\Message\ExceptionMessageFactoryInterface
*
* @api
*/
interface ExceptionMessageFactoryInterface
{
/**
* Creates error message based on Exception type and the data it contains
*
* @param \Exception $exception
* @param string $type
* @return MessageInterface
* @throws RuntimeException
*/
public function createMessage(\Exception $exception, $type = MessageInterface::TYPE_ERROR);
}