Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Prado
Exceptions
THttpException
PHP Class Prado\Exceptions\THttpException
THttpException represents an exception that is caused by invalid operations of end-users. The {@link getStatusCode StatusCode} gives the type of HTTP error. It is used by {@link TErrorHandler} to provide different error output to users.
Since:
3.0
Author:
Qiang Xue (
[email protected]
)
Inheritance:
extends
TSystemException
显示文件
Open project: pradosoft/prado
Public Methods
Method
Description
__construct
(
$statusCode
,
$errorMessage
)
Constructor.
getStatusCode
( ) :
integer
Method Details
__construct()
public
method
Constructor.
public
__construct
(
$statusCode
,
$errorMessage
)
getStatusCode()
public
method
public
getStatusCode
( ) :
integer
return
integer
HTTP status code, such as 404, 500, etc.