PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class THttpException

THttpException class

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

Exception
Extended by TException
Extended by TSystemException
Extended by THttpException
Package: System\Exceptions
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Exceptions/TException.php
Methods summary
public
# __construct( integer $statusCode, string $errorMessage )

Constructor.

Constructor.

Parameters

$statusCode
integer
HTTP status code, such as 404, 500, etc.
$errorMessage
string
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.

Overrides

TException::__construct()
public integer
# getStatusCode( )

Returns

integer
HTTP status code, such as 404, 500, etc.
Methods inherited from TException
getErrorCode(), getErrorMessage(), getErrorMessageFile(), setErrorCode(), setErrorMessage(), translateErrorMessage()
Methods inherited from Exception
__toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from TException
$_messageCache
Properties inherited from Exception
$code, $file, $line, $message
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO