2022-07-08 09:49:39 +02:00
|
|
|
<?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
|
2022-07-08 09:49:39 +02:00
|
|
|
*
|
|
|
|
* @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-08 09:49:39 +02:00
|
|
|
*/
|
|
|
|
|
2022-07-13 13:21:52 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-07-08 09:49:39 +02:00
|
|
|
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;
|
2023-01-07 21:13:32 +01:00
|
|
|
use OxidEsales\Eshop\Core\Language;
|
2022-07-08 09:49:39 +02:00
|
|
|
|
2022-07-27 09:27:59 +02:00
|
|
|
class successfullySentException extends StandardException
|
2022-07-08 09:49:39 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param int $messageCount
|
|
|
|
* @param int $code
|
2022-07-27 09:27:59 +02:00
|
|
|
* @param Exception|null $previous
|
2022-07-08 09:49:39 +02:00
|
|
|
*/
|
2022-07-27 09:27:59 +02:00
|
|
|
public function __construct($messageCount = 1, $code = 0, Exception $previous = null)
|
2022-07-08 09:49:39 +02:00
|
|
|
{
|
2023-01-10 23:33:48 +01:00
|
|
|
/** @var Language $language */
|
|
|
|
$language = d3GetOxidDIC()->get('d3ox.linkmobility.'.Language::class);
|
2022-07-27 09:27:59 +02:00
|
|
|
/** @var string $format */
|
2023-01-10 23:33:48 +01:00
|
|
|
$format = $language->translateString('D3LM_EXC_SMS_SUCC_SENT');
|
2022-07-27 09:27:59 +02:00
|
|
|
$message = sprintf($format, $messageCount);
|
2022-07-08 09:49:39 +02:00
|
|
|
|
2022-07-13 13:23:48 +02:00
|
|
|
parent::__construct($message, $code, $previous);
|
2022-07-08 09:49:39 +02:00
|
|
|
}
|
2022-07-13 13:23:48 +02:00
|
|
|
}
|