linkmobility4oxid/src/Application/Model/Exceptions/successfullySentException.php

38 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/**
2022-07-13 13:21:52 +02:00
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
2022-07-13 13:21:52 +02:00
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
2022-07-13 13:21:52 +02:00
declare(strict_types=1);
namespace D3\Linkmobility4OXID\Application\Model\Exceptions;
2022-07-12 16:06:19 +02:00
use Exception;
2022-07-27 09:27:59 +02:00
use OxidEsales\Eshop\Core\Exception\StandardException;
use OxidEsales\Eshop\Core\Registry;
2022-07-27 09:27:59 +02:00
class successfullySentException extends StandardException
{
/**
* @param int $messageCount
* @param int $code
2022-07-27 09:27:59 +02:00
* @param Exception|null $previous
*/
2022-07-27 09:27:59 +02:00
public function __construct($messageCount = 1, $code = 0, Exception $previous = null)
{
2022-07-27 09:27:59 +02:00
/** @var string $format */
$format = Registry::getLang()->translateString('D3LM_EXC_SMS_SUCC_SENT');
$message = sprintf($format, $messageCount);
2022-07-13 13:23:48 +02:00
parent::__construct($message, $code, $previous);
}
2022-07-13 13:23:48 +02:00
}