Files
zyt/server/app/common/service/iam/IamHubException.php
T

24 lines
421 B
PHP

<?php
declare(strict_types=1);
namespace app\common\service\iam;
use RuntimeException;
class IamHubException extends RuntimeException
{
private int $httpStatus;
public function __construct(string $message, int $httpStatus = 400)
{
parent::__construct($message);
$this->httpStatus = $httpStatus;
}
public function httpStatus(): int
{
return $this->httpStatus;
}
}