[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Exceptions/ -> TException.php (sommaire)

Exception classes file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TException.php 1397 2006-09-07 07:55:53Z wei $
Poids: 357 lignes (10 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 13 classes

TException:: (7 méthodes):
  __construct()
  translateErrorMessage()
  getErrorMessageFile()
  getErrorCode()
  setErrorCode()
  getErrorMessage()
  setErrorMessage()

TSystemException:: (0 méthodes):

TApplicationException:: (0 méthodes):

TInvalidOperationException:: (0 méthodes):

TInvalidDataTypeException:: (0 méthodes):

TInvalidDataValueException:: (0 méthodes):

TConfigurationException:: (0 méthodes):

TIOException:: (0 méthodes):

TDbException:: (0 méthodes):

TDbConnectionException:: (0 méthodes):

TNotSupportedException:: (0 méthodes):

TPhpErrorException:: (1 méthode):
  __construct()

THttpException:: (2 méthodes):
  __construct()
  getStatusCode()


Classe: TException  - X-Ref

TException class

TException is the base class for all PRADO exceptions.

TException provides the functionality of translating an error code
into a descriptive error message in a language that is preferred
by user browser. Additional parameters may be passed together with
the error code so that the translated message contains more detailed
information.

By default, TException looks for a message file by calling
{@link getErrorMessageFile()} method, which uses the "message-xx.txt"
file located under "System.Exceptions" folder, where "xx" is the
code of the user preferred language. If such a file is not found,
"message.txt" will be used instead.

__construct($errorMessage)   X-Ref
Constructor.

param: string error message. This can be a string that is listed

translateErrorMessage($key)   X-Ref
Translates an error code into an error message.

param: string error code that is passed in the exception constructor.
return: string the translated error message

getErrorMessageFile()   X-Ref

return: string path to the error message file

getErrorCode()   X-Ref

return: string error code

setErrorCode($code)   X-Ref

param: string error code

getErrorMessage()   X-Ref

return: string error message

setErrorMessage($message)   X-Ref

param: string error message

Classe: TSystemException  - X-Ref

TSystemException class

TSystemException is the base class for all framework-level exceptions.

Classe: TApplicationException  - X-Ref

TApplicationException class

TApplicationException is the base class for all user application-level exceptions.

Classe: TInvalidOperationException  - X-Ref

TInvalidOperationException class

TInvalidOperationException represents an exception caused by invalid operations.

Classe: TInvalidDataTypeException  - X-Ref

TInvalidDataTypeException class

TInvalidDataTypeException represents an exception caused by invalid data type.

Classe: TInvalidDataValueException  - X-Ref

TInvalidDataValueException class

TInvalidDataValueException represents an exception caused by invalid data value.

Classe: TConfigurationException  - X-Ref

TConfigurationException class

TConfigurationException represents an exception caused by invalid configurations,
such as error in an application configuration file or control template file.

Classe: TIOException  - X-Ref

TIOException class

TIOException represents an exception related with improper IO operations.

Classe: TDbException  - X-Ref

TDbException class

TDbException represents an exception related with DB operations.

Classe: TDbConnectionException  - X-Ref

TDbConnectionException class

TDbConnectionException represents an exception caused by DB connection failure.

Classe: TNotSupportedException  - X-Ref

TNotSupportedException class

TNotSupportedException represents an exception caused by using an unsupported PRADO feature.

Classe: TPhpErrorException  - X-Ref

TPhpErrorException class

TPhpErrorException represents an exception caused by a PHP error.
This exception is mainly thrown within a PHP error handler.

__construct($errno,$errstr,$errfile,$errline)   X-Ref
Constructor.

param: integer error number
param: string error string
param: string error file
param: integer error line number

Classe: THttpException  - X-Ref

THttpException class

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.

__construct($statusCode,$errorMessage)   X-Ref
Constructor.

param: integer HTTP status code, such as 404, 500, etc.
param: string error message. This can be a string that is listed

getStatusCode()   X-Ref

return: integer HTTP status code, such as 404, 500, etc.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7