mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 04:14:05 +00:00
23 lines
545 B
PHP
Executable File
23 lines
545 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Classes\Modules\ControllerLogic\Exceptions;
|
|
|
|
use App\Classes\Exceptions\Common\ErrorException;
|
|
|
|
abstract class ServiceApiException extends ErrorException {
|
|
/** @var int */
|
|
private $httpStatusCode;
|
|
|
|
public function __construct(string $message, int $httpStatusCode = 500) {
|
|
parent::__construct($message, $httpStatusCode);
|
|
$this->httpStatusCode = $httpStatusCode;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getHttpStatusCode(): int {
|
|
return $this->httpStatusCode;
|
|
}
|
|
}
|