mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-25 15:33:58 +00:00
Major incomplete Change
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user