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
2019-04-28 14:49:10 +02:00

16 lines
No EOL
380 B
PHP

<?php
namespace App\Exceptions;
class HTTPException extends \Exception
{
private $httpCode = 500;
public function __construct($httpCode, $message, $code = 0, Exception $previous = null) {
$this->httpCode = $httpCode;
parent::__construct($message, $code, $previous);
}
public function getHttpStatusCode() {
return $this->httpCode;
}
}