33 lines
710 B
PHP
33 lines
710 B
PHP
<?php
|
|
|
|
namespace KupShop\BalikonosBundle\Exception;
|
|
|
|
use KupShop\KupShopBundle\Util\Logging\CustomDataExceptionInterface;
|
|
|
|
class BalikobotB2AValidationException extends \Exception implements CustomDataExceptionInterface
|
|
{
|
|
protected $data;
|
|
|
|
protected $reasons;
|
|
|
|
public function __construct($message = '', $code = 0, ?Throwable $previous = null, $data = [], $reasons = [])
|
|
{
|
|
parent::__construct($message, $code, $previous);
|
|
$this->data = $data;
|
|
$this->reasons = $reasons;
|
|
}
|
|
|
|
public function getReasons()
|
|
{
|
|
return $this->reasons;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getData(): array
|
|
{
|
|
return $this->data;
|
|
}
|
|
}
|