CHttpException
包 | system.base |
---|---|
继承 | class CHttpException » CException » Exception |
实现 | Throwable |
可用自 | 1.0 |
版本 | $Id$ |
CHttpException represents an exception caused by invalid operations of end-users.
The HTTP error code can be obtained via statusCode. Error handlers may use this status code to decide how to format the error page.
The HTTP error code can be obtained via statusCode. Error handlers may use this status code to decide how to format the error page.
公共属性
属性 | 类型 | 描述 | 被定义在 |
---|---|---|---|
statusCode | integer | HTTP status code, such as 403, 404, 500, etc. | CHttpException |
公共方法
方法 | 描述 | 被定义在 |
---|---|---|
__construct() | Constructor. | CHttpException |
__toString() | Exception | |
__wakeup() | Exception | |
getCode() | Exception | |
getFile() | Exception | |
getLine() | Exception | |
getMessage() | Exception | |
getPrevious() | Exception | |
getTrace() | Exception | |
getTraceAsString() | Exception |
属性详情
statusCode
属性
public integer $statusCode;
HTTP status code, such as 403, 404, 500, etc.
方法详情
__construct()
方法
public void __construct(integer $status, string $message=NULL, integer $code=0)
| ||
$status | integer | HTTP status code, such as 404, 500, etc. |
$message | string | error message |
$code | integer | error code |
Constructor.