class HttpException extends Exception (View source)

Properties

protected string $status

Define the status code has message

Methods

__construct(string $message, int $code = 200)

HttpException constructor

string
getStatus()

Get the define user error code

string
getStatusCode()

Get the status code

Details

__construct(string $message, int $code = 200)

HttpException constructor

Parameters

string $message
int $code

string getStatus()

Get the define user error code

Return Value

string

string getStatusCode()

Get the status code

Return Value

string