Look up a class, method, property or event
CHttpException
| Package |
system.base |
| Inheritance |
class CHttpException »
CException »
Exception |
| Since |
1.0 |
| Version |
$Id: CHttpException.php 1049 2009-05-22 20:00:35Z qiang.xue $ |
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.
Protected Properties
Hide inherited properties
| Property | Type | Description | Defined By |
| code |
|
|
Exception |
| file |
|
|
Exception |
| line |
|
|
Exception |
| message |
|
|
Exception |
Public Methods
Hide inherited methods
| Method | Description | Defined By |
| __construct() |
Constructor. |
CHttpException |
| __toString() |
|
Exception |
| getCode() |
|
Exception |
| getFile() |
|
Exception |
| getLine() |
|
Exception |
| getMessage() |
|
Exception |
| getTrace() |
|
Exception |
| getTraceAsString() |
|
Exception |
Property Details
public integer $statusCode;
HTTP status code, such as 403, 404, 500, etc.
Method Details
|
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.
Be the first person to leave a comment
Please login to leave your comment.