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.

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TException.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.0

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

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace
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()

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Mon, 25 Jun 2012 14:38:11 +0200 by phpDocumentor 1.4.3