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.