system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.i18n system.i18n.gettext system.logging system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers

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.

公共属性

隐藏继承的属性

属性类型描述被定义在
statusCode integer HTTP status code, such as 403, 404, 500, etc. CHttpException

受保护的属性

隐藏继承的属性

属性类型描述被定义在
code Exception
file Exception
line Exception
message Exception

公共方法

隐藏继承的方法

方法描述被定义在
__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.