mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 12:34:03 +00:00
8a28eb1790
This reverts merge request !5
23 lines
545 B
PHP
23 lines
545 B
PHP
<?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;
|
|
}
|
|
}
|