Class THttpException

Description

THttpException class

THttpException represents an exception that is caused by invalid operations of end-users. The StatusCode gives the type of HTTP error. It is used by TErrorHandler to provide different error output to users.

  • since: 3.0
  • version: $Id: TException.php 2606 2009-02-11 15:24:27Z haertl.mike $
  • author: Qiang Xue <qiang.xue@gmail.com>

Located in /Exceptions/TException.php (line 389)

Exception
   |
   --TException
      |
      --TSystemException
         |
         --THttpException
Method Summary
THttpException __construct (integer $statusCode, string $errorMessage)
integer getStatusCode ()
Variables

Inherited Variables

Inherited from TException

TException::$_messageCache
Methods
Constructor __construct (line 401)

Constructor.

  • access: public
THttpException __construct (integer $statusCode, string $errorMessage)
  • integer $statusCode: HTTP status code, such as 404, 500, etc.
  • string $errorMessage: error message. This can be a string that is listed in the message file. If so, the message in the preferred language will be used as the error message. Any rest parameters will be used to replace placeholders ({0}, {1}, {2}, etc.) in the message.

Redefinition of:
TException::__construct()
Constructor.
getStatusCode (line 419)
  • return: HTTP status code, such as 404, 500, etc.
  • access: public
integer getStatusCode ()

Inherited Methods

Inherited From TException

TException::__construct()
TException::getErrorCode()
TException::getErrorMessage()
TException::getErrorMessageFile()
TException::setErrorCode()
TException::setErrorMessage()
TException::translateErrorMessage()

Documentation generated on Sun, 24 May 2009 16:47:33 -0400 by phpDocumentor 1.3.0RC4