|
|
|
@ -40,9 +40,9 @@ class HttpException extends UserException
|
|
|
|
|
* @param int $status HTTP status code, such as 404, 500, etc. |
|
|
|
|
* @param string $message error message |
|
|
|
|
* @param int $code error code |
|
|
|
|
* @param \Exception $previous The previous exception used for the exception chaining. |
|
|
|
|
* @param \Throwable|null $previous The previous exception used for the exception chaining. |
|
|
|
|
*/ |
|
|
|
|
public function __construct($status, $message = null, $code = 0, \Exception $previous = null) |
|
|
|
|
public function __construct($status, $message = null, $code = 0, $previous = null) |
|
|
|
|
{ |
|
|
|
|
$this->statusCode = $status; |
|
|
|
|
parent::__construct((string)$message, $code, $previous); |
|
|
|
|