23 lines
517 B
PHP
23 lines
517 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace External\PompoBundle\Exception;
|
|
|
|
class PompoApiException extends PompoException
|
|
{
|
|
private int $responseCode;
|
|
|
|
public function __construct(string $message = '', int $responseCode = 200, array $data = [], $code = 0, ?\Throwable $previous = null)
|
|
{
|
|
parent::__construct($message, null, $data, $code, $previous);
|
|
|
|
$this->responseCode = $responseCode;
|
|
}
|
|
|
|
public function getResponseCode(): int
|
|
{
|
|
return $this->responseCode;
|
|
}
|
|
}
|