Files
omair saleh 8a28eb1790 Revert "Merge branch 'dashboardReport' into 'master'"
This reverts merge request !5
2019-03-19 09:57:38 +00:00

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;
}
}