This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccount/app/Exceptions/HTTPException.php

16 lines
380 B
PHP
Raw Normal View History

2019-04-24 18:46:41 +00:00
<?php
namespace App\Exceptions;
class HTTPException extends \Exception
{
2019-04-28 12:49:10 +00:00
private $httpCode = 500;
2019-04-24 18:46:41 +00:00
2019-04-28 12:49:10 +00:00
public function __construct($httpCode, $message, $code = 0, Exception $previous = null) {
$this->httpCode = $httpCode;
2019-04-24 18:46:41 +00:00
parent::__construct($message, $code, $previous);
}
2019-04-28 12:49:10 +00:00
public function getHttpStatusCode() {
return $this->httpCode;
2019-04-24 18:46:41 +00:00
}
}