Your IP : 216.73.216.208


Current Path : /home/m/a/g/maglabs/it/lib/internal/Magento/Framework/Message/
Upload File :
Current File : /home/m/a/g/maglabs/it/lib/internal/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);
}

?>