Files
kupshop/bundles/External/PompoBundle/Exception/PompoException.php
2025-08-02 16:30:27 +02:00

32 lines
775 B
PHP

<?php
declare(strict_types=1);
namespace External\PompoBundle\Exception;
use KupShop\KupShopBundle\Util\Logging\CustomDataExceptionInterface;
class PompoException extends \Exception implements CustomDataExceptionInterface
{
private ?string $detailedMessage;
private array $data = [];
public function __construct(string $message = '', ?string $detailedMessage = null, array $data = [], $code = 0, ?\Throwable $previous = null)
{
$this->detailedMessage = $detailedMessage;
$this->data = $data;
parent::__construct($message, $code, $previous);
}
public function getDetailedMessage(): ?string
{
return $this->detailedMessage;
}
public function getData(): array
{
return $this->data;
}
}