Major incomplete Change

This commit is contained in:
Omair Saleh
2019-02-14 11:43:19 +08:00
parent 771c52883f
commit 79131671bf
138 changed files with 2345 additions and 69018 deletions
@@ -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;
}
}