23 lines
407 B
PHP
23 lines
407 B
PHP
<?php
|
|
|
|
class stInPostApiTransactionException extends stInPostApiException
|
|
{
|
|
/**
|
|
* Nazwa błędu
|
|
*
|
|
* @var string|null
|
|
*/
|
|
protected $error;
|
|
|
|
public function __construct(string $message, ?string $error = null)
|
|
{
|
|
parent::__construct($message);
|
|
|
|
$this->error = $error;
|
|
}
|
|
|
|
public function getError(): ?string
|
|
{
|
|
return $this->error;
|
|
}
|
|
} |