first commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace KupShop\BalikonosBundle\Exception;
|
||||
|
||||
class BalikonosException extends \Exception
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user