21 lines
509 B
PHP
21 lines
509 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\KupShopBundle\Exception;
|
|
|
|
use KupShop\KupShopBundle\Util\Logging\CustomDataExceptionInterface;
|
|
|
|
class UserMessageException extends \Exception implements CustomDataExceptionInterface
|
|
{
|
|
public function __construct(string $message = '', private array $data = [], int $code = 0, ?\Throwable $previous = null)
|
|
{
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
|
|
public function getData(): array
|
|
{
|
|
return $this->data;
|
|
}
|
|
}
|